From 7e5b026095c54a78f94f6c91785c04d9cba1a309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 17 Mar 2019 10:06:12 +0100 Subject: Add some "commons" file --- nixops/modules/pub/restrict | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nixops/modules/pub/restrict') 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) -- cgit v1.2.3