X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fpub%2Frestrict;h=6204aa20c09d8717dd7dbc21bc843a3290156f85;hb=cdd7f5e1ba8ac50d67834106c1af847690a9c719;hp=4a3e2152c3162e0817a8539aacea196b16c287b8;hpb=43e28479827d6363cece1ff1123417f7ac720799;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/pub/restrict b/nixops/modules/pub/restrict index 4a3e215..6204aa2 100644 --- a/nixops/modules/pub/restrict +++ b/nixops/modules/pub/restrict @@ -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)