refactor flake
This commit is contained in:
parent
0ec0ecec20
commit
37d398fd80
1 changed files with 9 additions and 17 deletions
26
flake.nix
26
flake.nix
|
@ -37,25 +37,17 @@
|
|||
}
|
||||
{ _module.args = { inherit hostname username; }; }
|
||||
];
|
||||
|
||||
configureSystem = hostname: homeConfig: nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
modules = commonModules hostname ++ [
|
||||
{ home-manager.users.${username} = import homeConfig; }
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
vamos =
|
||||
let hostname = "vamos";
|
||||
in nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
modules = commonModules hostname ++ [
|
||||
{ home-manager.users.nezia = import ./home/laptop; }
|
||||
];
|
||||
};
|
||||
|
||||
solaire = let
|
||||
hostname = "solaire";
|
||||
in nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
modules = commonModules hostname ++ [
|
||||
{ home-manager.users.nezia = import ./home/desktop; }
|
||||
];
|
||||
};
|
||||
vamos = configureSystem "vamos" ./home/laptop;
|
||||
solaire = configureSystem "solaire" ./home/desktop;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue