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
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
overlays = builtins.attrValues (import ./overlays);
|
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
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
desktop1 = nixpkgs.lib.nixosSystem {
|
desktop1 = mkHost ./hosts/desktop1/configuration.nix;
|
||||||
specialArgs = { inherit inputs system overlays; };
|
server1 = mkHost ./hosts/server1/configuration.nix;
|
||||||
modules = [
|
laptop1 = mkHost ./hosts/laptop1/configuration.nix;
|
||||||
./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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user