[NixOS] Add nixpkgs and home-manager submodules

This commit is contained in:
Ivan Malison 2021-07-17 15:23:13 -06:00
parent b3e18f3ccc
commit 74d4ae4ffe
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
10 changed files with 128 additions and 92 deletions

6
.gitmodules vendored
View File

@ -7,3 +7,9 @@
[submodule "dotfiles/xmonad/xmonad-contrib"] [submodule "dotfiles/xmonad/xmonad-contrib"]
path = dotfiles/config/xmonad/xmonad-contrib path = dotfiles/config/xmonad/xmonad-contrib
url = ../xmonad-contrib.git url = ../xmonad-contrib.git
[submodule "nixos/home-manager"]
path = nixos/home-manager
url = git@github.com:IvanMalison/home-manager.git
[submodule "nixos/nixpkgs"]
path = nixos/nixpkgs
url = git@github.com:IvanMalison/nixpkgs.git

@ -1 +1 @@
Subproject commit c971b20c484dd77995095edd3f79d1a5d989ca33 Subproject commit 2c4bb6a4c8e3e5023f1be937ee9e091b421fffbc

@ -1 +1 @@
Subproject commit b321489cfcf84d72a280ff1c60718532e319aa2c Subproject commit 63bb0e76e667f25e693e8f772187ec462e7598bd

@ -1 +1 @@
Subproject commit ef1e37f7d8448190582e8698e8dfeecf8fbb2ec7 Subproject commit 23dd08c984b5337c6d2f520d1822a82ea2032348

View File

@ -24,6 +24,7 @@ in
vlc vlc
transmission-gtk transmission-gtk
dolphin dolphin
element-desktop
# Appearance # Appearance
hicolor-icon-theme hicolor-icon-theme

View File

@ -1,15 +1,15 @@
{ {
"nodes": { "nodes": {
"gitIgnoreSource": { "gitIgnoreNix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1625992881, "lastModified": 1626413882,
"narHash": "sha256-eCezVMt2pyTzMFQAPgkUotoCtm2/r36v3MsCBIaaDTo=", "narHash": "sha256-ZHw1YVsrs7rG9jPEH0ZabbbCTdnVr48FAwK6GCQPSF4=",
"owner": "IvanMalison", "owner": "IvanMalison",
"repo": "gitignore.nix", "repo": "gitignore.nix",
"rev": "af0dc0884813e837d5e3025daaba212792c62da0", "rev": "a2ffb0bfd0145ca57d792a6f9f76f5c305ca29b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -19,26 +19,58 @@
"type": "github" "type": "github"
} }
}, },
"home-manager": { "gitIgnoreNix_2": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": "nixpkgs_2"
"nixpkgs"
]
}, },
"locked": { "locked": {
"lastModified": 1626387497, "lastModified": 1626413882,
"narHash": "sha256-b+KjkO0+wXKIpfPWrVEsaKpZusUOS005Vx3FiP1aS0A=", "narHash": "sha256-ZHw1YVsrs7rG9jPEH0ZabbbCTdnVr48FAwK6GCQPSF4=",
"owner": "IvanMalison", "owner": "IvanMalison",
"repo": "home-manager", "repo": "gitignore.nix",
"rev": "2f5b9e26bf5bc441dfc83a44d8cbbf203eddac14", "rev": "a2ffb0bfd0145ca57d792a6f9f76f5c305ca29b7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "IvanMalison", "owner": "IvanMalison",
"repo": "home-manager", "repo": "gitignore.nix",
"type": "github" "type": "github"
} }
}, },
"gitIgnoreNix_3": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1626413882,
"narHash": "sha256-ZHw1YVsrs7rG9jPEH0ZabbbCTdnVr48FAwK6GCQPSF4=",
"owner": "IvanMalison",
"repo": "gitignore.nix",
"rev": "a2ffb0bfd0145ca57d792a6f9f76f5c305ca29b7",
"type": "github"
},
"original": {
"owner": "IvanMalison",
"repo": "gitignore.nix",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"my_unstable"
]
},
"locked": {
"narHash": "sha256-OtY5KlTU1TOydDiFTjPx0lCZmfLwdWEagm0C1NROErU=",
"path": "./home-manager",
"type": "path"
},
"original": {
"path": "./home-manager",
"type": "path"
}
},
"lowdown-src": { "lowdown-src": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -56,10 +88,23 @@
"type": "github" "type": "github"
} }
}, },
"my_unstable": {
"locked": {
"narHash": "sha256-ejJE3m7ymOKpPE6NBDlWla1FitMw04hB8JAUeW9WIn8=",
"path": "./nixpkgs",
"type": "path"
},
"original": {
"path": "./nixpkgs",
"type": "path"
}
},
"nix": { "nix": {
"inputs": { "inputs": {
"lowdown-src": "lowdown-src", "lowdown-src": "lowdown-src",
"nixpkgs": "nixpkgs" "nixpkgs": [
"my_unstable"
]
}, },
"locked": { "locked": {
"lastModified": 1626394428, "lastModified": 1626394428,
@ -93,16 +138,14 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1624862269, "lastModified": 1626384428,
"narHash": "sha256-JFcsh2+7QtfKdJFoPibLFPLgIW6Ycnv8Bts9a7RYme0=", "narHash": "sha256-cllqP3lJ9DdVRD1SEOf3s7U3dWqYqGicayxwGTsq/lc=",
"owner": "NixOS", "path": "/nix/store/iidjm6gz3j5j9y1kvw4z43mzv33vx1qp-source",
"repo": "nixpkgs", "rev": "cb2bdbe09bfc1ec11386c524b3bbfb55e5d2f376",
"rev": "f77036342e2b690c61c97202bf48f2ce13acc022", "type": "path"
"type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-21.05-small",
"type": "indirect" "type": "indirect"
} }
}, },
@ -110,55 +153,21 @@
"locked": { "locked": {
"lastModified": 1626384428, "lastModified": 1626384428,
"narHash": "sha256-cllqP3lJ9DdVRD1SEOf3s7U3dWqYqGicayxwGTsq/lc=", "narHash": "sha256-cllqP3lJ9DdVRD1SEOf3s7U3dWqYqGicayxwGTsq/lc=",
"owner": "IvanMalison", "path": "/nix/store/iidjm6gz3j5j9y1kvw4z43mzv33vx1qp-source",
"repo": "nixpkgs",
"rev": "cb2bdbe09bfc1ec11386c524b3bbfb55e5d2f376", "rev": "cb2bdbe09bfc1ec11386c524b3bbfb55e5d2f376",
"type": "github" "type": "path"
}, },
"original": { "original": {
"owner": "IvanMalison", "id": "nixpkgs",
"ref": "my-unstable", "type": "indirect"
"repo": "nixpkgs",
"type": "github"
} }
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"narHash": "sha256-2VpqiYwgoTLYeQnNz+YbMdtGrQQkjZjEH0UqVl5vm2s=", "lastModified": 1626384428,
"path": "/home/imalison/Projects/nixpkgs", "narHash": "sha256-cllqP3lJ9DdVRD1SEOf3s7U3dWqYqGicayxwGTsq/lc=",
"type": "path" "path": "/nix/store/iidjm6gz3j5j9y1kvw4z43mzv33vx1qp-source",
}, "rev": "cb2bdbe09bfc1ec11386c524b3bbfb55e5d2f376",
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_4": {
"locked": {
"narHash": "sha256-2VpqiYwgoTLYeQnNz+YbMdtGrQQkjZjEH0UqVl5vm2s=",
"path": "/home/imalison/Projects/nixpkgs",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_5": {
"locked": {
"narHash": "sha256-UlUBl0x3MKu9ZdVJJxmZcI2MrAeUU+RLUojqtSiRkzw=",
"path": "/home/imalison/Projects/nixpkgs",
"type": "path"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_6": {
"locked": {
"narHash": "sha256-UlUBl0x3MKu9ZdVJJxmZcI2MrAeUU+RLUojqtSiRkzw=",
"path": "/home/imalison/Projects/nixpkgs",
"type": "path" "type": "path"
}, },
"original": { "original": {
@ -169,9 +178,9 @@
"root": { "root": {
"inputs": { "inputs": {
"home-manager": "home-manager", "home-manager": "home-manager",
"my_unstable": "my_unstable",
"nix": "nix", "nix": "nix",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"taffybar": "taffybar", "taffybar": "taffybar",
"xmonad": "xmonad", "xmonad": "xmonad",
"xmonad-contrib": "xmonad-contrib" "xmonad-contrib": "xmonad-contrib"
@ -179,11 +188,13 @@
}, },
"taffybar": { "taffybar": {
"inputs": { "inputs": {
"gitIgnoreSource": "gitIgnoreSource", "gitIgnoreNix": "gitIgnoreNix",
"nixpkgs": "nixpkgs_4" "nixpkgs": [
"my_unstable"
]
}, },
"locked": { "locked": {
"narHash": "sha256-ulmlBKbUqYhFz7CDFrZAEjP677bpwTVXkYcPBo4rzIs=", "narHash": "sha256-r5RSu8atRAIb3Aroc7OdQeCxgfXc8wyHAitX6VPOPMI=",
"path": "../dotfiles/config/taffybar/taffybar", "path": "../dotfiles/config/taffybar/taffybar",
"type": "path" "type": "path"
}, },
@ -194,10 +205,13 @@
}, },
"xmonad": { "xmonad": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_5" "gitIgnoreNix": "gitIgnoreNix_2",
"nixpkgs": [
"my_unstable"
]
}, },
"locked": { "locked": {
"narHash": "sha256-wrruQzvSPGiYrHnqql5qLjK/2Ypf4PMgGpmWvxZ7OHw=", "narHash": "sha256-tRk4foS5QiPx/GwTSl6+lfY15d1Y3822DjDxqMHjf34=",
"path": "../dotfiles/config/xmonad/xmonad", "path": "../dotfiles/config/xmonad/xmonad",
"type": "path" "type": "path"
}, },
@ -208,10 +222,13 @@
}, },
"xmonad-contrib": { "xmonad-contrib": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_6" "gitIgnoreNix": "gitIgnoreNix_3",
"nixpkgs": [
"my_unstable"
]
}, },
"locked": { "locked": {
"narHash": "sha256-U+FcJ5c1EDc1ce0gbHyhiK5XFI1e9+HTwfRqxktPJts=", "narHash": "sha256-jbikN00AydMA542fcPuVgMcVobagwf6/Wbgj804PjYA=",
"path": "../dotfiles/config/xmonad/xmonad-contrib", "path": "../dotfiles/config/xmonad/xmonad-contrib",
"type": "path" "type": "path"
}, },

View File

@ -1,58 +1,65 @@
{ {
inputs = { inputs = {
nixos-hardware.url = github:nixos/nixos-hardware;
nix = { nix = {
url = github:IvanMalison/nix/master; url = github:IvanMalison/nix/master;
inputs.nixpkgs.follows = "my_unstable";
}; };
nixpkgs = { my_unstable = {
url = github:IvanMalison/nixpkgs/my-unstable; url = path:./nixpkgs;
}; };
taffybar = { home-manager = {
url = path:../dotfiles/config/taffybar/taffybar; url = path:./home-manager;
inputs.nixpkgs.follows = "my_unstable";
}; };
xmonad-contrib = { xmonad-contrib = {
url = path:../dotfiles/config/xmonad/xmonad-contrib; url = path:../dotfiles/config/xmonad/xmonad-contrib;
inputs.nixpkgs.follows = "my_unstable";
}; };
xmonad = { xmonad = {
url = path:../dotfiles/config/xmonad/xmonad; url = path:../dotfiles/config/xmonad/xmonad;
inputs.nixpkgs.follows = "my_unstable";
}; };
nixos-hardware.url = github:nixos/nixos-hardware; taffybar = {
home-manager = { url = path:../dotfiles/config/taffybar/taffybar;
url = github:IvanMalison/home-manager; inputs.nixpkgs.follows = "my_unstable";
inputs.nixpkgs.follows = "nixpkgs";
}; };
}; };
outputs = { self, nix, nixpkgs, nixos-hardware, home-manager, taffybar, xmonad, xmonad-contrib }: outputs = {
self, nix, my_unstable, nixos-hardware, home-manager, taffybar, xmonad,
xmonad-contrib
}:
let forAll = ({ ... }: { let forAll = ({ ... }: {
nix = { nix = {
extraOptions = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
registry.nixpkgs.flake = nixpkgs; registry.nixpkgs.flake = my_unstable;
}; };
nixpkgs.overlays = [ nixpkgs.overlays = [
taffybar.overlay xmonad.overlay xmonad-contrib.overlay nix.overlay nix.overlay taffybar.overlay xmonad.overlay xmonad-contrib.overlay
]; ];
imports = [ imports = [
home-manager.nixosModule home-manager.nixosModule
]; ];
}); });
piHardware = ({ ... }: { piHardware = ({ ... }: {
imports = [ imports = [
nixos-hardware.nixosModules.raspberry-pi-4 nixos-hardware.nixosModules.raspberry-pi-4
]; ];
}); });
in in
{ {
nixosConfigurations = { nixosConfigurations = {
ivanm-dfinity-razer = nixpkgs.lib.nixosSystem { ivanm-dfinity-razer = my_unstable.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ forAll ./machines/ivanm-dfinity-razer.nix ]; modules = [ forAll ./machines/ivanm-dfinity-razer.nix ];
}; };
ryzen-shine = nixpkgs.lib.nixosSystem { ryzen-shine = my_unstable.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ forAll ./machines/ryzen-shine.nix ]; modules = [ forAll ./machines/ryzen-shine.nix ];
}; };
biskcomp = nixpkgs.lib.nixosSystem { biskcomp = my_unstable.lib.nixosSystem {
system = "aarch64-linux"; system = "aarch64-linux";
modules = [ forAll piHardware ./machines/biskcomp.nix ]; modules = [ forAll piHardware ./machines/biskcomp.nix ];
}; };

1
nixos/home-manager Submodule

@ -0,0 +1 @@
Subproject commit 88c5bb85a32d66f1ac50835cf36de7a567549d18

1
nixos/nixpkgs Submodule

@ -0,0 +1 @@
Subproject commit 71e3cbe2e975752eae72a1023f705bb5ad7dbb54

3
nixos/rebuild.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
nix flake update --impure --inputs-from .
sudo nixos-rebuild switch --flake '.#' --impure