diff --git a/deployment/data-model-test.nix b/deployment/data-model-test.nix index 9741b6dc..649189c4 100644 --- a/deployment/data-model-test.nix +++ b/deployment/data-model-test.nix @@ -40,7 +40,7 @@ in _class = "fediversity-resource-policy"; options = { - extra-config = mkOptions { + extra-config = mkOption { description = "Any options from NixOS"; }; apply = mkOption { @@ -88,12 +88,12 @@ in requests: let # Filter out requests that need wheel if policy doesn't allow it - validRequests = lib.filterAttrs (name: req: !req.wheel || config.wheel) requests; + validRequests = lib.filterAttrs (_name: req: !req.wheel || config.wheel) requests; in lib.optionalAttrs (validRequests != { }) { ${config.username} = { isNormalUser = true; - packages = with lib; concatMapAttrs (name: request: attrValues request.packages) validRequests; + packages = with lib; concatMapAttrs (_name: request: attrValues request.packages) validRequests; extraGroups = lib.optional config.wheel "wheel"; }; }; @@ -135,10 +135,10 @@ in inputs.nixops4-nixos.modules.nixops4Resource.nixos ]; nixos.module = - { pkgs, ... }: + { ... }: { users.users = config.resources.shell.login-shell.apply ( - lib.filterAttrs (name: value: value ? login-shell) requests + lib.filterAttrs (_name: value: value ? login-shell) requests ); }; }; diff --git a/deployment/data-model.nix b/deployment/data-model.nix index a7692232..a9181c6e 100644 --- a/deployment/data-model.nix +++ b/deployment/data-model.nix @@ -33,7 +33,7 @@ in description = "Collection of deployment resources that can be required by applications and policed by hosting providers"; type = attrsOf ( submodule ( - { config, ... }: + { ... }: { _class = "fediversity-resource"; options = { @@ -52,7 +52,7 @@ in { _class = "fediversity-resource-policy"; options.apply = mkOption { - desciption = "Apply the policy to a request"; + description = "Apply the policy to a request"; }; } ]; @@ -177,13 +177,13 @@ in description = "Configuration type declaring options to be set by operators"; type = optionType; readOnly = true; - default = submodule (configuration: { + default = submodule { options = { enable = lib.mkEnableOption { description = "your Fediversity configuration"; }; applications = lib.mapAttrs ( - name: application: + _name: application: mkOption { description = application.description; type = submodule application.module; @@ -191,7 +191,7 @@ in } ) config.applications; }; - }); + }; }; }; }