0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

More derp

This commit is contained in:
Parnell Springmeyer 2017-01-29 05:33:56 -06:00
parent 70b8167d4a
commit 628e6a83d0
No known key found for this signature in database
GPG key ID: DCCF89258EAD874A
13 changed files with 38 additions and 42 deletions

View file

@ -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,