Basic configuration for new servers and start modularizing config

This commit is contained in:
Charlotte Van Petegem 2020-12-01 19:23:28 +01:00
parent 82bb5b401c
commit ca93d09059
No known key found for this signature in database
GPG key ID: 019E764B7184435A
38 changed files with 622 additions and 316 deletions

View file

@ -21,7 +21,7 @@
inherit system;
modules = [
home-manager.nixosModules.home-manager
(./. + "/machines/${hostname}")
(./modules)
({ pkgs, ... }: {
environment.etc."nixpkgs".source = (pkgs.runCommandNoCC "nixpkgs" { } ''
cp -r ${nixpkgs} $out
@ -30,6 +30,7 @@
'');
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
})
(./. + "/machines/${hostname}")
];
};
in