netns-exec: simplify installation
This commit is contained in:
parent
809e754851
commit
91ebc2d517
@ -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";
|
||||
|
@ -5,7 +5,6 @@ stdenv.mkDerivation {
|
||||
buildInputs = [ pkgs.libcap ];
|
||||
src = ./src;
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp main $out/netns-exec
|
||||
cp main $out
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user