rewite flake.nix host deffinition
This commit is contained in:
parent
6624ebeff3
commit
d429fbd1d6
42
flake.nix
42
flake.nix
@ -29,37 +29,25 @@
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
overlays = builtins.attrValues (import ./overlays);
|
||||
|
||||
sharedModules = [
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
inputs.stylix.nixosModules.stylix
|
||||
nvf.nixosModules.default
|
||||
];
|
||||
|
||||
mkHost = hostConfig:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system overlays; };
|
||||
modules = [ hostConfig ] ++ sharedModules;
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
nixosConfigurations = {
|
||||
desktop1 = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system overlays; };
|
||||
modules = [
|
||||
./hosts/desktop1/configuration.nix
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
inputs.stylix.nixosModules.stylix
|
||||
nvf.nixosModules.default
|
||||
];
|
||||
};
|
||||
server1 = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system overlays; };
|
||||
modules = [
|
||||
./hosts/server1/configuration.nix
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
inputs.stylix.nixosModules.stylix
|
||||
nvf.nixosModules.default
|
||||
];
|
||||
};
|
||||
laptop1 = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs system overlays; };
|
||||
modules = [
|
||||
./hosts/laptop1/configuration.nix
|
||||
nix-flatpak.nixosModules.nix-flatpak
|
||||
inputs.stylix.nixosModules.stylix
|
||||
nvf.nixosModules.default
|
||||
];
|
||||
};
|
||||
desktop1 = mkHost ./hosts/desktop1/configuration.nix;
|
||||
server1 = mkHost ./hosts/server1/configuration.nix;
|
||||
laptop1 = mkHost ./hosts/laptop1/configuration.nix;
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user