diff --git a/flake-module.nix b/flake-module.nix index 0cb9369..82bf10f 100644 --- a/flake-module.nix +++ b/flake-module.nix @@ -26,15 +26,14 @@ in { check.enable = true; settings = { + # for some reason statix takes it config differently than all the other hooks. + settings.statix = { + format = "stderr"; + ignore = generatedFiles; + }; hooks = { nil.enable = true; - statix = { - enable = true; - settings = { - format = "stderr"; - ignore = generatedFiles; - }; - }; + statix.enable = true; deadnix = { enable = true; excludes = generatedFiles; diff --git a/nixos/modules/mailman.nix b/nixos/modules/mailman.nix index 597a2f1..71403e6 100644 --- a/nixos/modules/mailman.nix +++ b/nixos/modules/mailman.nix @@ -11,16 +11,16 @@ mkEnableOption mkOption ; - inherit (lib.types) nonEmptyStr; + inherit (lib.types) str; cfg = config.services.mathebau-mailman; in { options.services.mathebau-mailman = { enable = mkEnableOption "mathebau mailman service"; hostName = mkOption { - type = nonEmptyStr; + type = str; }; siteOwner = mkOption { - type = nonEmptyStr; + type = str; }; };