refactor!: multi-host setup

This commit is contained in:
2025-01-21 08:18:09 +00:00
parent b03daef66c
commit c03f3cb182
7 changed files with 46 additions and 37 deletions

View File

@@ -24,13 +24,10 @@
meta = { hostname = host.name; };
};
system = "x86_64-linux";
modules =
[ ./configuration.nix home-manager.nixosModules.home-manager ]
++ (if host.isWSL then [
./wsl.nix
nixos-wsl.nixosModules.default
] else
[ ]);
modules = [
./hosts/${host.name}/configuration.nix
home-manager.nixosModules.home-manager
] ++ (if host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]);
};
}) hosts);
};