mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
tidy up hosts/default.nix
This commit is contained in:
parent
7d7b770ab5
commit
7f99d68036
1 changed files with 8 additions and 8 deletions
|
@ -2,16 +2,16 @@ nixpkgs: hardware: nixosModule:
|
||||||
with hardware;
|
with hardware;
|
||||||
|
|
||||||
let
|
let
|
||||||
sys = args: nixpkgs.lib.nixosSystem {
|
sys = system: mods: nixpkgs.lib.nixosSystem {
|
||||||
system = builtins.head args;
|
inherit system;
|
||||||
modules = [ nixosModule ] ++ builtins.tail args;
|
modules = [ nixosModule ] ++ mods;
|
||||||
};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
cube = sys [ "x86_64-linux" physical ./cube ];
|
cube = sys "x86_64-linux" [ physical ./cube ];
|
||||||
hp = sys [ "x86_64-linux" physical ./hp ];
|
hp = sys "x86_64-linux" [ physical ./hp ];
|
||||||
lenny = sys [ "x86_64-linux" physical ./lenny ];
|
lenny = sys "x86_64-linux" [ physical ./lenny ];
|
||||||
nixdev = sys [ "x86_64-linux" qemu ./nixdev ];
|
nixdev = sys "x86_64-linux" [ qemu ./nixdev ];
|
||||||
slate = sys [ "x86_64-linux" physical ./slate ];
|
slate = sys "x86_64-linux" [ physical ./slate ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue