diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-10 17:06:47 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-07-10 17:07:08 +0200 |
commit | 746bca9ed1f2d492a2abddbd66f363e688baa930 (patch) | |
tree | b9430336760075b88f84a1c693ed00f822761935 | |
parent | Packages: Added lemacs emacs launching utility package (diff) | |
download | nixos-config-746bca9ed1f2d492a2abddbd66f363e688baa930.tar.gz nixos-config-746bca9ed1f2d492a2abddbd66f363e688baa930.tar.bz2 nixos-config-746bca9ed1f2d492a2abddbd66f363e688baa930.zip |
mkHost: pass arguments in a set instead of currying
-rw-r--r-- | hosts/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/default.nix b/hosts/default.nix index 571cd48..03ba710 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -8,7 +8,7 @@ let { hostname = "vm"; system = "x86_64-linux"; location = secrets.main_location; } ]; - mkHost = hostname: system: location: + mkHost = { hostname, system, location }: let pkgs = import nixpkgs { inherit system; @@ -44,4 +44,4 @@ in Map each element of the list applying the mkHost function to its elements and returning a set in the listToAttrs format builtins.listToAttrs on the result */ -builtins.listToAttrs (map ({ hostname, system, location }: { name = hostname; value = mkHost hostname system location; }) hosts) +builtins.listToAttrs (map ({ hostname, system, location }: { name = hostname; value = mkHost { inherit hostname system location; }; }) hosts) |