use nix enum type

This commit is contained in:
Alex 2023-03-20 11:17:38 +01:00
parent 90efd9155b
commit 6ffaa0ed91

View file

@ -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)";
};