diff --git a/nix/module.nix b/nix/module.nix index 255e15c..6515c54 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -16,21 +16,17 @@ in { options = { services.tlaternet-webserver = { enable = mkEnableOption "tlaternet web server"; - listen = mkOption { - type = submodule { - options = { - addr = mkOption { - type = str; - description = "IP address."; - default = "127.0.0.1"; - }; + listen = { + addr = mkOption { + type = str; + description = "IP address."; + default = "127.0.0.1"; + }; - port = mkOption { - type = int; - description = "Port number."; - default = 8000; - }; - }; + port = mkOption { + type = int; + description = "Port number."; + default = 8000; }; }; };