a flake module to ease creating and managing multiple hosts in your nix flake.

fix: re-arange arguments to constructSystem

this lead to https://github.com/tgirlcloud/easy-hosts/issues/3

Changed files
+2 -2
+1 -1
flake-module.nix
··· 162 162 163 163 system = mkOption { 164 164 type = types.str; 165 - default = constructSystem cfg config.class config.arch; 165 + default = constructSystem cfg config.arch config.class; 166 166 example = "aarch64-darwin"; 167 167 description = "The system to be used for the host"; 168 168 internal = true; # this should ideally be set by easy-hosts
+1 -1
lib.nix
··· 32 32 cfg: class: ({ linux = "nixos"; } // (cfg.additionalClasses or { })).${class} or class; 33 33 34 34 constructSystem = 35 - config: class: arch: 35 + config: arch: class: 36 36 let 37 37 class' = redefineClass config class; 38 38 os = classToOS class';