[feat] Remove useless overlay stuff

This commit is contained in:
Uttarayan Mondal
2024-02-15 07:17:21 +05:30
parent 0aa2ea2a7a
commit ea57c3c97f
4 changed files with 265 additions and 273 deletions

View File

@@ -1,21 +1,20 @@
{ config
, pkgs
, lib
, device
, overlays
, ...
}:
let
{
config,
pkgs,
lib,
device,
# overlays,
...
}: let
start-tmux = (import ../scripts/start-tmux.nix) pkgs;
in
# https://mipmip.github.io/home-manager-option-search/
{
nixpkgs.overlays = [
(self: super: {
neovim-nightly = overlays.neovim-nightly;
})
];
# https://mipmip.github.io/home-manager-option-search/
{
#nixpkgs.overlays = [
# (self: super: {
# neovim-nightly = overlays.neovim-nightly;
# })
#];
imports = [
# Include the results of the hardware scan.
./tmux.nix
@@ -139,20 +138,19 @@ in
# manage.
username = device.user;
homeDirectory =
if device.system == "x86-64-linux" then
lib.mkForce "/home/${device.user}"
else
lib.mkForce "/Users/${device.user}";
if device.system == "x86-64-linux"
then lib.mkForce "/home/${device.user}"
else lib.mkForce "/Users/${device.user}";
stateVersion = "23.11";
packages = [
pkgs.macchina
pkgs.ripgrep
pkgs.alejandra
# pkgs.neovim-nightly
pkgs.cachix
packages = with pkgs; [
macchina
ripgrep
fd
alejandra
neovim-nightly
cachix
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello
@@ -191,4 +189,4 @@ in
"${config.home.homeDirectory}/.nix-profile/bin"
];
};
}
}

17
config/nix/flake.lock generated
View File

@@ -71,9 +71,8 @@
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
"id": "flake-utils",
"type": "indirect"
}
},
"flake-utils_2": {
@@ -146,11 +145,11 @@
},
"locked": {
"dir": "contrib",
"lastModified": 1707868264,
"narHash": "sha256-Ewc5fxKb09XQeO6LeKmko0x7MxKmVCGUYwKq7w8sZD0=",
"lastModified": 1707941489,
"narHash": "sha256-S5KG+iYMFVHIEfeXSWYei2jcHs6kOfhM1pUoVQ9G/Lw=",
"owner": "neovim",
"repo": "neovim",
"rev": "a376d979bda103fa9998d05c3cc4ba56d3c3cece",
"rev": "d09957e0a06f350443c750d9838b5f1016c0cccc",
"type": "github"
},
"original": {
@@ -169,11 +168,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1707935913,
"narHash": "sha256-uAkWeyJUNyZS9/u9huCoAJXyTiHw1F+5a91IDujPppk=",
"lastModified": 1707955468,
"narHash": "sha256-ZVka2bcB1AQTiVWqp2yH9Rnsd4Tvpcf5NXXzJIp7QNE=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "b57bf64254630de4920177333f06b341653b1f28",
"rev": "0b6b4afc71e14d7f17f4e4a367ce271b9d398432",
"type": "github"
},
"original": {

View File

@@ -13,17 +13,16 @@
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
flake-utils.url = "github:numtide/flake-utils";
# flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs
, home-manager
, nix-darwin
, flake-utils
, ...
} @ inputs:
let
outputs = {
nixpkgs,
home-manager,
nix-darwin,
flake-utils,
...
} @ inputs: let
devices = [
{
name = "mirai";
@@ -48,20 +47,18 @@
];
linux = builtins.filter (x: x.system == "x86_64-linux") devices;
darwin = builtins.filter (x: x.system == "aarch64-darwin") devices;
in
{
in {
homeConfigurations = builtins.listToAttrs (builtins.map
(device: {
name = device.user;
value =
let
value = let
pkgs = nixpkgs.legacyPackages.${device.system};
overlays = [ inputs.neovim-nightly-overlay.overlay ];
overlays = [inputs.neovim-nightly-overlay.overlay];
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
./common/home.nix
{
nixpkgs.overlays = overlays;
}
@@ -75,10 +72,9 @@
(builtins.map
(device: {
name = device.name;
value =
let
value = let
pkgs = nixpkgs.legacyPackages.${device.system};
overlays = [ inputs.neovim-nightly-overlay.overlay ];
overlays = [inputs.neovim-nightly-overlay.overlay];
in
nix-darwin.lib.darwinSystem {
inherit pkgs;
@@ -86,14 +82,14 @@
./darwin
home-manager.darwinModules.home-manager
{
nixpkgs.overlays = overlays;
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit device;
inherit overlays;
};
users.${device.user}.imports = [ ./common/home.nix ];
users.${device.user}.imports = [./common/home.nix];
};
}
];

View File

@@ -6,4 +6,3 @@ experimental-features = nix-command flakes repl-flake
bash-prompt-prefix = (nix:$name)\040
max-jobs = auto
extra-nix-path = nixpkgs=flake:nixpkgs
upgrade-nix-store-path-url = https://install.determinate.systems/nix-upgrade/stable/universal