about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-10 17:06:47 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-10 17:07:08 +0200
commit746bca9ed1f2d492a2abddbd66f363e688baa930 (patch)
treeb9430336760075b88f84a1c693ed00f822761935 /hosts
parentPackages: Added lemacs emacs launching utility package (diff)
downloadnixos-config-746bca9ed1f2d492a2abddbd66f363e688baa930.tar.gz
nixos-config-746bca9ed1f2d492a2abddbd66f363e688baa930.tar.bz2
nixos-config-746bca9ed1f2d492a2abddbd66f363e688baa930.zip
mkHost: pass arguments in a set instead of currying
Diffstat (limited to 'hosts')
-rw-r--r--hosts/default.nix4
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)