remove redudnant options

This commit is contained in:
daragh 2024-05-21 03:40:58 +01:00
parent 2a605151f8
commit 4ce0f69fb3
No known key found for this signature in database

View file

@ -24,16 +24,6 @@ in {
type = types.str;
};
};
ip = mkOption {
type = types.str;
default = cfg.host.ip;
};
port = mkOption {
type = types.port;
default = port;
};
};
config = mkIf cfg.enable {
@ -52,7 +42,7 @@ in {
services.grafana = {
enable = true;
domain = "${name}.skynet.ie";
port = cfg.port;
port = port;
addr = cfg.host.ip;
};
@ -61,7 +51,7 @@ in {
forceSSL = true;
useACMEHost = "skynet";
locations."/" = {
proxyPass = "http://localhost:${toString cfg.port}";
proxyPass = "http://localhost:${toString port}";
proxyWebsockets = true;
};
};