modularise a bit
This commit is contained in:
parent
e871ce10c7
commit
f96e27fecd
5 changed files with 44 additions and 67 deletions
21
flake.nix
21
flake.nix
|
|
@ -10,29 +10,16 @@
|
|||
outputs = { nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
|
||||
lib = nixpkgs.lib;
|
||||
mkConf = import ./lib/mkconf.nix;
|
||||
|
||||
user = "tristan";
|
||||
in {
|
||||
|
||||
nixosConfigurations = {
|
||||
zenix = lib.nixosSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
./system/configuration.nix
|
||||
home-manager.nixosModules.home-manager {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.tristan = {
|
||||
imports = [ ./home.nix ];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
zenix = mkConf "zenix" { inherit nixpkgs system user home-manager; };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue