From 6ffaa0ed91a6e2e4ecec6741677ad9307dcdbab2 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 20 Mar 2023 11:17:38 +0100 Subject: [PATCH] use nix enum type --- nix/wgautomesh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/wgautomesh.nix b/nix/wgautomesh.nix index 5a1480c..c64c4af 100644 --- a/nix/wgautomesh.nix +++ b/nix/wgautomesh.nix @@ -15,7 +15,7 @@ in options.services.wgautomesh = { enable = mkEnableOption "wgautomesh"; logLevel = mkOption { - type = types.str; + type = types.enum [ "trace" "debug" "info" "warn" "error" ]; default = "info"; description = "wgautomesh log level (trace/debug/info/warn/error)"; };