]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Revert personnal nix path
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Mar 2019 09:09:48 +0000 (10:09 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Mar 2019 09:09:48 +0000 (10:09 +0100)
nixops/modules/pub/restrict

index 6204aa20c09d8717dd7dbc21bc843a3290156f85..b2f3be369f1a60fb0efb56d7d04e8cdcc0a687c2 100644 (file)
@@ -2,7 +2,6 @@
 user="$1"
 rootuser="$HOME/$user/"
 mkdir -p $rootuser
-mkdir -p $HOME/$user-nixstore
 
 orig="$SSH_ORIGINAL_COMMAND"
 if [ -z "$orig" ]; then
@@ -29,7 +28,6 @@ rsync*)
 
         set -euo pipefail
         (exec -c bwrap --ro-bind /usr /usr \
-              --bind /var/lib/pub/$user-nixstore /nix \
               --args 10 \
               --dir /tmp \
               --dir /var \
@@ -46,7 +44,6 @@ rsync*)
               --bind /var/lib/pub/$user /var/lib/pub \
               --dir /var/lib/commons \
               --ro-bind $TMUX_RESTRICT /var/lib/commons/tmux.restrict.conf \
-              --file 9 /var/lib/commons/nix-dump \
               --chdir /var/lib/pub \
               --unshare-all \
               --share-net \
@@ -60,7 +57,6 @@ rsync*)
               --file 11 /etc/passwd \
               --file 12 /etc/group \
               -- $orig) \
-              9< <(nix-store --dump-db) \
               10< <(nix_store_paths) \
               11< <(getent passwd $UID 65534) \
               12< <(getent group $(id -g) 65534)