From: Ismaƫl Bouya Date: Sun, 17 Mar 2019 09:06:12 +0000 (+0100) Subject: Add some "commons" file X-Git-Tag: nur_publish~197 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=7e5b026095c54a78f94f6c91785c04d9cba1a309 Add some "commons" file --- 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)