diff options
author | Nikolay Amiantov <ab@fmap.me> | 2022-02-16 21:33:19 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2022-02-19 14:03:33 +0300 |
commit | a347d52074c9aa5d39daae21bc1083dfc23d5f7b (patch) | |
tree | 57e76d91296607e5c29315db144294098f8b9d6e /nixos | |
parent | 41f4d999ad6ea5233e0852daea33d3c375b5a5ee (diff) | |
download | nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.tar nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.tar.gz nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.tar.bz2 nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.tar.lz nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.tar.xz nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.tar.zst nixpkgs-a347d52074c9aa5d39daae21bc1083dfc23d5f7b.zip |
nixos/ntopng: http-port -> httpPort
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/ntopng.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/ntopng.nix b/nixos/modules/services/networking/ntopng.nix index 2c45d418a0d..022fc923eda 100644 --- a/nixos/modules/services/networking/ntopng.nix +++ b/nixos/modules/services/networking/ntopng.nix @@ -21,7 +21,7 @@ let else pkgs.writeText "ntopng.conf" '' ${concatStringsSep " " (map (e: "--interface=" + e) cfg.interfaces)} - --http-port=${toString cfg.http-port} + --http-port=${toString cfg.httpPort} --redis=${cfg.redis.address} --data-dir=/var/lib/ntopng --user=ntopng @@ -32,6 +32,10 @@ in { + imports = [ + (mkRenamedOptionModule [ "services" "ntopng" "http-port" ] [ "services" "ntopng" "httpPort" ]) + ]; + options = { services.ntopng = { @@ -64,7 +68,7 @@ in ''; }; - http-port = mkOption { + httpPort = mkOption { default = 3000; type = types.int; description = '' |