X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fpub%2Frestrict;h=b2f3be369f1a60fb0efb56d7d04e8cdcc0a687c2;hb=3a1461cf44102e6cd8cdee5e0f1ff1d7992894ad;hp=a16d7a54b7b57e7f48d30d1928a2efc9cba5ca31;hpb=5ccc61bb90f4e8959a0866c9ce2e711453d0fd9b;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/pub/restrict b/nixops/modules/pub/restrict index a16d7a5..b2f3be3 100644 --- a/nixops/modules/pub/restrict +++ b/nixops/modules/pub/restrict @@ -20,8 +20,9 @@ rsync*) nix-store -q -R \ /run/current-system/sw \ /etc/profiles/per-user/pub \ + /etc/ssl/certs/ca-bundle.crt \ | while read i; do - printf '%s--bind\0'$i'\0'$i'\0' '' + printf '%s--ro-bind\0'$i'\0'$i'\0' '' done } @@ -34,11 +35,15 @@ rsync*) --proc /proc \ --dev /dev \ --ro-bind /etc/resolv.conf /etc/resolv.conf \ + --ro-bind /etc/zoneinfo /etc/zoneinfo \ + --ro-bind /etc/ssl /etc/ssl \ + --ro-bind /etc/static/ssl/certs /etc/static/ssl/certs \ --ro-bind /run/current-system/sw/lib/locale/locale-archive /etc/locale-archive \ --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 \ --chdir /var/lib/pub \ --unshare-all \ --share-net \