modularise a bit
This commit is contained in:
parent
e871ce10c7
commit
f96e27fecd
5 changed files with 44 additions and 67 deletions
17
lib/mkconf.nix
Normal file
17
lib/mkconf.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: { nixpkgs, home-manager, system, user, ... }:
|
||||
|
||||
nixpkgs.lib.nixosSystem rec {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
|
||||
../hardware/${name}.nix
|
||||
../system/${name}.nix
|
||||
../global.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.${user} = import ../home.nix;
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue