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

Merge pull request #7 from jalil-salame/push-znupvouoyryo

fix(typos): a bunch of typos detected by typos :p

authored by isabelroses.com and committed by

GitHub e96af44c 6acb9402

+12 -10
+2
.typos.toml
··· 1 + [default.extend-identifiers] 2 + classToND = "classToND" # we have a good readon for this... yeah..
+2 -2
README.md
··· 37 37 - `modules`: A list of modules that will be included in all the hosts of the given class. 38 38 - `specialArgs`: A list of special arguments that will be passed to all the hosts of the given class. 39 39 40 - - `easyHosts.additionalClasses`: This is an attrset of strings with mappings to any of [ "nixos", "darwin", "iso" ]. The intention here to provide a nicer api for `perClass` to operate, you may find yourself including `wsl` as a class beacuse of this. 40 + - `easyHosts.additionalClasses`: This is an attrset of strings with mappings to any of [ "nixos", "darwin", "iso" ]. The intention here to provide a nicer api for `perClass` to operate, you may find yourself including `wsl` as a class because of this. 41 41 42 42 - `easyHosts.hosts.<host>`: The options for the given host. 43 43 - `path`: the path to the host, this is not strictly needed if you have a flat directory called `hosts` or `systems`. 44 44 - `arch`: The architecture of the host. 45 45 - `modules`: A list of modules that will be included in the host. 46 - - `class`: the class of the host, this can be one of [ "nixos", "darwin", "iso" ] or anything defined by `easyHosts.additonalClasses`. 46 + - `class`: the class of the host, this can be one of [ "nixos", "darwin", "iso" ] or anything defined by `easyHosts.additionalClasses`. 47 47 - `specialArgs`: A list of special arguments that will be passed to the host. 48 48 - `deployable`: this was added for people who may want to consume a deploy-rs or colmena flakeModule. 49 49
+1 -1
flake-module.nix
··· 108 108 additionalClasses = mkOption { 109 109 default = { }; 110 110 type = types.attrsOf types.str; 111 - description = "Additional classes and thier respective mappings to already existing classes"; 111 + description = "Additional classes and their respective mappings to already existing classes"; 112 112 example = lib.literalExpression '' 113 113 { 114 114 wsl = "nixos";
+7 -7
lib.nix
··· 77 77 { 78 78 name, 79 79 path, 80 - # by the time we recive the argument here it can only be one of 80 + # by the time we receive the argument here it can only be one of 81 81 # nixos, darwin, or iso. The redefineClass function should be used prior 82 82 # nixos, darwin. The redefineClass function should be used prior 83 83 class, ··· 106 106 specialArgs = recursiveUpdate { 107 107 inherit 108 108 # these are normal args that people expect to be passed, 109 - # but we expect to be evaulated when resolving module structure 109 + # but we expect to be evaluated when resolving module structure 110 110 inputs 111 111 112 112 # even though self is just the same as `inputs.self` 113 113 # we still pass this as some people will use this 114 114 self 115 115 116 - # we need to set this beacuse some modules require it sadly 116 + # we need to set this because some modules require it sadly 117 117 # you may also recall `modulesPath + /installer/scan/not-detected.nix` 118 118 modulesPath 119 119 ; ··· 145 145 "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix" 146 146 ]) 147 147 148 - # the next 3 singleton's are split up to make it easier to understand as they do things diffrent things 148 + # the next 3 singleton's are split up to make it easier to understand as they do things different things 149 149 150 - # recall `specialArgs` would take be prefered when resolving module structure 150 + # recall `specialArgs` would take be preferred when resolving module structure 151 151 # well this is how we do it use it for all args that don't need to rosolve module structure 152 152 (singleton { 153 153 _module.args = withSystem system ( ··· 225 225 }; 226 226 }; 227 227 228 - foldAttrsReccursive = foldl' (acc: attrs: recursiveUpdate acc attrs) { }; 228 + foldAttrsRecursive = foldl' (acc: attrs: recursiveUpdate acc attrs) { }; 229 229 230 230 mkHosts = 231 231 easyHostsConfig: ··· 249 249 perClass.modules 250 250 ]; 251 251 252 - specialArgs = foldAttrsReccursive [ 252 + specialArgs = foldAttrsRecursive [ 253 253 hostConfig.specialArgs 254 254 easyHostsConfig.shared.specialArgs 255 255 perClass.specialArgs