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;
|
boot.kernel.sysctl."net.ipv4.ip_forward" = true;
|
||||||
|
|
||||||
security.wrappers.netns-exec = {
|
security.wrappers.netns-exec = {
|
||||||
source = "${pkgs.nix-bitcoin.netns-exec}/netns-exec";
|
source = pkgs.nix-bitcoin.netns-exec;
|
||||||
capabilities = "cap_sys_admin=ep";
|
capabilities = "cap_sys_admin=ep";
|
||||||
owner = cfg.allowedUser;
|
owner = cfg.allowedUser;
|
||||||
permissions = "u+rx,g+rx,o-rwx";
|
permissions = "u+rx,g+rx,o-rwx";
|
||||||
|
@ -5,7 +5,6 @@ stdenv.mkDerivation {
|
|||||||
buildInputs = [ pkgs.libcap ];
|
buildInputs = [ pkgs.libcap ];
|
||||||
src = ./src;
|
src = ./src;
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
cp main $out
|
||||||
cp main $out/netns-exec
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user