Mount /nix inside docker
This commit is contained in:
parent
42d7f249d4
commit
4a6b8fc482
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
fhs = pkgs.writeShellScriptBin "fhs"
|
fhs = pkgs.writeShellScriptBin "fhs"
|
||||||
("${pkgs.docker}/bin/docker run -v /home/user:/home/user "+
|
("${pkgs.docker}/bin/docker run -v /home/user:/home/user -v /nix:/nix "+
|
||||||
"-e \"HOST_PWD=$PWD\" -it fhs");
|
"-e \"HOST_PWD=$PWD\" -it fhs");
|
||||||
in {
|
in {
|
||||||
security.allowUserNamespaces = true;
|
security.allowUserNamespaces = true;
|
||||||
@ -55,7 +55,7 @@ in {
|
|||||||
(writeShellScriptBin "fhs-ptrace"
|
(writeShellScriptBin "fhs-ptrace"
|
||||||
("sudo ${pkgs.docker}/bin/docker run -v /home/user:/home/user " +
|
("sudo ${pkgs.docker}/bin/docker run -v /home/user:/home/user " +
|
||||||
"--cap-add=SYS_PTRACE --security-opt seccomp=unconfined" +
|
"--cap-add=SYS_PTRACE --security-opt seccomp=unconfined" +
|
||||||
" -e \"HOST_PWD=$PWD\" -it fhs"))
|
" -e \"HOST_PWD=$PWD\" -v /nix=/nix -it fhs"))
|
||||||
];
|
];
|
||||||
|
|
||||||
security.wrappers = {
|
security.wrappers = {
|
||||||
|
Loading…
Reference in New Issue
Block a user