all repos — searchix @ 0da8640705714335a1200e84287ff22e3fe7f5d6

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: invalid config generated by nixos module

Alan Pearce
commit

0da8640705714335a1200e84287ff22e3fe7f5d6

parent

6d42ad10e483590d1dbb7ceacae8f6dd11f0d1df

1 file changed, 14 insertions(+), 14 deletions(-)

changed files
M nix/modules/default.nixnix/modules/default.nix
@@ -102,6 +102,19 @@ default = { };
description = "Environment variables passed to the service process."; }; + logLevel = mkOption { + type = + with types; + enum [ + "error" + "warn" + "info" + "debug" + ]; + description = "Only log messages with the given severity or above."; + default = "info"; + }; + settings = mkOption { default = { }; type = types.submodule {
@@ -111,19 +124,6 @@ dataPath = mkOption {
type = types.str; description = "Where to store search index and other data."; default = "${cfg.homeDir}/data"; - }; - - logLevel = mkOption { - type = - with types; - enum [ - "error" - "warn" - "info" - "debug" - ]; - description = "Only log messages with the given severity or above."; - default = "info"; }; web = mkOption {
@@ -249,7 +249,7 @@ description = "Searchix Nix option search";
wantedBy = [ "multi-user.target" ]; path = with pkgs; [ nix ]; environment = { - LOG_LEVEL = cfg.settings.logLevel; + LOG_LEVEL = cfg.logLevel; } // cfg.environment; serviceConfig =