netns-exec: simplify installation

This commit is contained in:
Erik Arvstedt 2020-08-21 22:36:06 +02:00
parent 809e754851
commit 91ebc2d517
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 3 deletions

View File

@ -101,7 +101,7 @@ in {
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
security.wrappers.netns-exec = {
source = "${pkgs.nix-bitcoin.netns-exec}/netns-exec";
source = pkgs.nix-bitcoin.netns-exec;
capabilities = "cap_sys_admin=ep";
owner = cfg.allowedUser;
permissions = "u+rx,g+rx,o-rwx";

View File

@ -5,7 +5,6 @@ stdenv.mkDerivation {
buildInputs = [ pkgs.libcap ];
src = ./src;
installPhase = ''
mkdir -p $out
cp main $out/netns-exec
cp main $out
'';
}