diff --git a/mod.nix b/mod.nix index 3dcd581..8ee5ca7 100644 --- a/mod.nix +++ b/mod.nix @@ -9,7 +9,7 @@ in enable = mkEnableOption "brownpaper service"; listen = mkOption { type = types.str; - default = "0.0.0.0"; + default = "127.0.0.1"; }; port = mkOption { type = types.int; @@ -32,7 +32,7 @@ in enable = mkEnableOption "brownpaper client"; endpoint = mkOption { type = types.str; - default = "http://localhost:3000"; + default = "http://${cfg.listen}:${toString cfg.port}"; }; }; config = {