Define individual hosts in hosts/

This commit is contained in:
ItsDrike 2024-02-28 19:36:12 +01:00
parent 9f53049813
commit f35c496905
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
2 changed files with 14 additions and 7 deletions

View file

@ -14,12 +14,8 @@
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = ["x86_64-linux"];
flake = {
nixosConfigurations = {
vboxnix = nixpkgs.lib.nixosSystem {
modules = [ ./system ./hosts/vbox_nix ];
};
};
};
imports = [
./hosts
];
};
}

11
hosts/default.nix Normal file
View file

@ -0,0 +1,11 @@
{self, inputs, ...}: {
flake.nixosConfigurations = let
inherit (inputs.nixpkgs.lib) nixosSystem;
specialArgs = {inherit inputs self;};
in {
vboxnix = nixosSystem {
inherit specialArgs;
modules = [ ../system ./vbox_nix ];
};
};
}