]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add some "commons" file
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Mar 2019 09:06:12 +0000 (10:06 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 17 Mar 2019 09:06:12 +0000 (10:06 +0100)
nixops/modules/pub/restrict

index 4a3e2152c3162e0817a8539aacea196b16c287b8..6204aa20c09d8717dd7dbc21bc843a3290156f85 100644 (file)
@@ -44,7 +44,9 @@ rsync*)
               --ro-bind /run/current-system/sw/bin /bin \
               --ro-bind /etc/profiles/per-user/pub/bin /bin-pub \
               --bind /var/lib/pub/$user /var/lib/pub \
-              --ro-bind $TMUX_RESTRICT /var/lib/pub/.tmux.restrict.conf \
+              --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 \
@@ -58,6 +60,7 @@ 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)