Try to separate hosts

This commit is contained in:
Théo Barnouin 2024-09-09 15:22:30 +02:00
parent ff8a4d23a9
commit 38fba61f9c
4 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
${hostName} = nixpkgs.lib.nixosSystem { ${hostName} = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = [ modules = [
./configuration.nix ./hosts/${hostName}/configuration.nix
{ {
networking.hostName = hostName; networking.hostName = hostName;
} }
@ -30,7 +30,7 @@
{ {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.${username} = import ./home.nix; home-manager.users.${username} = import ./hosts/${hostName}/home.nix;
} }
microvm.nixosModules.host microvm.nixosModules.host
{ {