diff options
author | Parnell Springmeyer <parnell@digitalmentat.com> | 2017-01-29 05:33:56 -0600 |
---|---|---|
committer | Parnell Springmeyer <parnell@digitalmentat.com> | 2017-01-29 05:33:56 -0600 |
commit | 628e6a83d0f3b7ddc0592c88fef7978a7ee0063e (patch) | |
tree | 9be8f15d5603d70e65795410ac9140812f9a79a5 /nixos/modules/tasks/network-interfaces.nix | |
parent | 70b8167d4ac3572a2f364bba18432ea15df92971 (diff) | |
download | nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.tar nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.tar.gz nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.tar.bz2 nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.tar.lz nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.tar.xz nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.tar.zst nixpkgs-628e6a83d0f3b7ddc0592c88fef7978a7ee0063e.zip |
More derp
Diffstat (limited to 'nixos/modules/tasks/network-interfaces.nix')
-rw-r--r-- | nixos/modules/tasks/network-interfaces.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/tasks/network-interfaces.nix b/nixos/modules/tasks/network-interfaces.nix index 1afcddd915f..a01bf21af51 100644 --- a/nixos/modules/tasks/network-interfaces.nix +++ b/nixos/modules/tasks/network-interfaces.nix @@ -912,9 +912,10 @@ in # If the linux kernel IS older than 4.3, create setuid wrappers # for ping and ping6 - security.setuidPrograms = mkIf (versionOlder (getVersion config.boot.kernelPackages.kernel) "4.3") [ - "ping" "ping6" - ]; + security.wrappers = mkIf (versionOlder (getVersion config.boot.kernelPackages.kernel) "4.3") { + ping.source = "${pkgs.iputils.out}/bin/ping"; + "ping6".source = "${pkgs.iputils.out}/bin/ping6"; + }; # Set the host and domain names in the activation script. Don't # clear it if it's not configured in the NixOS configuration, |