mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 05:24:34 +00:00
Define individual hosts in hosts/
This commit is contained in:
parent
9f53049813
commit
f35c496905
10
flake.nix
10
flake.nix
|
@ -14,12 +14,8 @@
|
||||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = ["x86_64-linux"];
|
systems = ["x86_64-linux"];
|
||||||
|
|
||||||
flake = {
|
imports = [
|
||||||
nixosConfigurations = {
|
./hosts
|
||||||
vboxnix = nixpkgs.lib.nixosSystem {
|
];
|
||||||
modules = [ ./system ./hosts/vbox_nix ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
11
hosts/default.nix
Normal file
11
hosts/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue