flake: refactor handling of shared modules
This commit is contained in:
parent
817ca1e9df
commit
825e09f59e
3 changed files with 15 additions and 24 deletions
|
|
@ -58,12 +58,18 @@
|
|||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
}
|
||||
# Include generic settings
|
||||
./modules
|
||||
# Include my secrets
|
||||
./secrets
|
||||
# Include my services
|
||||
./services
|
||||
];
|
||||
|
||||
buildHost = name: system: lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = defaultModules ++ [
|
||||
(./. + "/${name}.nix")
|
||||
(./. + "/machines/${name}")
|
||||
];
|
||||
specialArgs = {
|
||||
# Use my extended lib in NixOS configuration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue