diff --git a/hosts/default.nix b/hosts/default.nix index 7574621..79c62fd 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -2,16 +2,16 @@ nixpkgs: hardware: nixosModule: with hardware; let - sys = args: nixpkgs.lib.nixosSystem { - system = builtins.head args; - modules = [ nixosModule ] ++ builtins.tail args; + sys = system: mods: nixpkgs.lib.nixosSystem { + inherit system; + modules = [ nixosModule ] ++ mods; }; in { - cube = sys [ "x86_64-linux" physical ./cube ]; - hp = sys [ "x86_64-linux" physical ./hp ]; - lenny = sys [ "x86_64-linux" physical ./lenny ]; - nixdev = sys [ "x86_64-linux" qemu ./nixdev ]; - slate = sys [ "x86_64-linux" physical ./slate ]; + cube = sys "x86_64-linux" [ physical ./cube ]; + hp = sys "x86_64-linux" [ physical ./hp ]; + lenny = sys "x86_64-linux" [ physical ./lenny ]; + nixdev = sys "x86_64-linux" [ qemu ./nixdev ]; + slate = sys "x86_64-linux" [ physical ./slate ]; }