modularise a bit

This commit is contained in:
tristan 2023-04-15 12:23:31 +01:00
parent e871ce10c7
commit f96e27fecd
5 changed files with 44 additions and 67 deletions

17
lib/mkconf.nix Normal file
View 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;
}
];
}