Unified home and system modules!

This commit is contained in:
marc
2022-11-19 11:58:21 +01:00
parent cfcc374a69
commit 890b05d352
45 changed files with 389 additions and 566 deletions

View File

@@ -32,9 +32,7 @@
specialArgs = { inherit lib inputs system; };
modules = [
./system/modules
./system/profiles
./system/hosts/reykjavik
./hosts/reykjavik
{
imports =
@@ -43,44 +41,28 @@
++ (lib.my.mapModulesRec' (toString ./modules) import);
}
];
};
# - Kopavogur ----------------------------
kopavogur = lib.nixosSystem {
inherit system;
inherit pkgs;
specialArgs = { inherit lib inputs system; };
modules = [
./hosts/kopavogur
{
home-manager.users.marc = {
imports = [
./home/modules
./home/profiles
./home/hosts/reykjavik.nix
];
};
imports =
[ inputs.home-manager.nixosModules.home-manager ]
# All my personal modules
++ (lib.my.mapModulesRec' (toString ./modules) import);
}
];
};
# - Kopavogur ----------------------------
# kopavogur = lib.nixosSystem {
# inherit system;
# inherit pkgs;
# modules = [
# ./system/modules
# ./system/profiles
# ./system/hosts/kopavogur
# home-manager.nixosModules.home-manager {
# home-manager.useGlobalPkgs = true;
# home-manager.useUserPackages = true;
# home-manager.users.marc = {
# imports = [
# ./home/modules
# ./home/profiles
# ./home/hosts/kopavogur.nix
# ];
# };
# }
# ];
# };
};
};
}