···11+[default.extend-identifiers]
22+classToND = "classToND" # we have a good readon for this... yeah..
+2-2
README.md
···3737 - `modules`: A list of modules that will be included in all the hosts of the given class.
3838 - `specialArgs`: A list of special arguments that will be passed to all the hosts of the given class.
39394040-- `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.
4040+- `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.
41414242- `easyHosts.hosts.<host>`: The options for the given host.
4343 - `path`: the path to the host, this is not strictly needed if you have a flat directory called `hosts` or `systems`.
4444 - `arch`: The architecture of the host.
4545 - `modules`: A list of modules that will be included in the host.
4646- - `class`: the class of the host, this can be one of [ "nixos", "darwin", "iso" ] or anything defined by `easyHosts.additonalClasses`.
4646+ - `class`: the class of the host, this can be one of [ "nixos", "darwin", "iso" ] or anything defined by `easyHosts.additionalClasses`.
4747 - `specialArgs`: A list of special arguments that will be passed to the host.
4848 - `deployable`: this was added for people who may want to consume a deploy-rs or colmena flakeModule.
4949
+1-1
flake-module.nix
···108108 additionalClasses = mkOption {
109109 default = { };
110110 type = types.attrsOf types.str;
111111- description = "Additional classes and thier respective mappings to already existing classes";
111111+ description = "Additional classes and their respective mappings to already existing classes";
112112 example = lib.literalExpression ''
113113 {
114114 wsl = "nixos";
+7-7
lib.nix
···7777 {
7878 name,
7979 path,
8080- # by the time we recive the argument here it can only be one of
8080+ # by the time we receive the argument here it can only be one of
8181 # nixos, darwin, or iso. The redefineClass function should be used prior
8282 # nixos, darwin. The redefineClass function should be used prior
8383 class,
···106106 specialArgs = recursiveUpdate {
107107 inherit
108108 # these are normal args that people expect to be passed,
109109- # but we expect to be evaulated when resolving module structure
109109+ # but we expect to be evaluated when resolving module structure
110110 inputs
111111112112 # even though self is just the same as `inputs.self`
113113 # we still pass this as some people will use this
114114 self
115115116116- # we need to set this beacuse some modules require it sadly
116116+ # we need to set this because some modules require it sadly
117117 # you may also recall `modulesPath + /installer/scan/not-detected.nix`
118118 modulesPath
119119 ;
···145145 "${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix"
146146 ])
147147148148- # the next 3 singleton's are split up to make it easier to understand as they do things diffrent things
148148+ # the next 3 singleton's are split up to make it easier to understand as they do things different things
149149150150- # recall `specialArgs` would take be prefered when resolving module structure
150150+ # recall `specialArgs` would take be preferred when resolving module structure
151151 # well this is how we do it use it for all args that don't need to rosolve module structure
152152 (singleton {
153153 _module.args = withSystem system (
···225225 };
226226 };
227227228228- foldAttrsReccursive = foldl' (acc: attrs: recursiveUpdate acc attrs) { };
228228+ foldAttrsRecursive = foldl' (acc: attrs: recursiveUpdate acc attrs) { };
229229230230 mkHosts =
231231 easyHostsConfig:
···249249 perClass.modules
250250 ];
251251252252- specialArgs = foldAttrsReccursive [
252252+ specialArgs = foldAttrsRecursive [
253253 hostConfig.specialArgs
254254 easyHostsConfig.shared.specialArgs
255255 perClass.specialArgs