summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorgnidorah <gnidorah@users.noreply.github.com>2018-03-28 09:13:09 +0300
committergnidorah <gnidorah@users.noreply.github.com>2018-03-28 10:36:04 +0300
commit30a56d72db90914272d023eb5ede7fb5d8c842fb (patch)
treeb83a81eefea01f8fdf74730c002cb085af83ea02 /nixos
parent33c34aff2fb42268f45c5563f767266e27c58a9b (diff)
downloadnixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.tar
nixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.tar.gz
nixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.tar.bz2
nixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.tar.lz
nixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.tar.xz
nixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.tar.zst
nixpkgs-30a56d72db90914272d023eb5ede7fb5d8c842fb.zip
hans: rename option
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/hans.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/hans.nix b/nixos/modules/services/networking/hans.nix
index 4579154d78f..56c30a6b96e 100644
--- a/nixos/modules/services/networking/hans.nix
+++ b/nixos/modules/services/networking/hans.nix
@@ -76,10 +76,10 @@ in
           example = "198.51.100.0";
         };
 
-        systemPings = mkOption {
+        respondToSystemPings = mkOption {
           type = types.bool;
           default = false;
-          description = "Respond to ordinary pings";
+          description = "Force hans respond to ordinary pings";
         };
 
         extraConfig = mkOption {
@@ -102,7 +102,7 @@ in
   ### implementation
 
   config = mkIf (cfg.server.enable || cfg.clients != {}) {
-    boot.kernel.sysctl = optionalAttrs cfg.server.systemPings {
+    boot.kernel.sysctl = optionalAttrs cfg.server.respondToSystemPings {
       "net.ipv4.icmp_echo_ignore_all" = 1;
     };
 
@@ -131,7 +131,7 @@ in
         description = "hans, ip over icmp server daemon";
         after = [ "network.target" ];
         wantedBy = [ "multi-user.target" ];
-        script = "${pkgs.hans}/bin/hans -f -u ${hansUser} ${cfg.server.extraConfig} -s ${cfg.server.ip} ${optionalString cfg.server.systemPings "-r"} ${optionalString (cfg.passwordFile != "") "-p $(cat \"${cfg.passwordFile}\")"}";
+        script = "${pkgs.hans}/bin/hans -f -u ${hansUser} ${cfg.server.extraConfig} -s ${cfg.server.ip} ${optionalString cfg.server.respondToSystemPings "-r"} ${optionalString (cfg.passwordFile != "") "-p $(cat \"${cfg.passwordFile}\")"}";
       };
     };