From f831eb7e4b04fe788883c5f630c70020895ce7fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sat, 8 Aug 2020 15:57:28 +0200 Subject: [PATCH] Export some directories to pub accounts --- environments/immae-eu.nix | 1 + modules/private/system/eldiron.nix | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/environments/immae-eu.nix b/environments/immae-eu.nix index dddc1fd..bcb7df4 100644 --- a/environments/immae-eu.nix +++ b/environments/immae-eu.nix @@ -117,6 +117,7 @@ let telnet bind.dnsutils httpie ngrep nmap p0f socat lsof psmisc wget patchelf rename tmux (lib.meta.hiPrio nettools) vlock mosh manpages openssl openssl.doc openssl.man + sshfs # other tools pgloader s3cmd lftp jq cpulimit libxslt gandi-cli diff --git a/modules/private/system/eldiron.nix b/modules/private/system/eldiron.nix index b3bda53..b2a728c 100644 --- a/modules/private/system/eldiron.nix +++ b/modules/private/system/eldiron.nix @@ -93,6 +93,13 @@ ]; }; + fileSystems."/var/lib/pub/immae/devtools" = { + device = "/run/current-system/sw/bin/bindfs#/var/lib/ftp/devtools.immae.eu/"; + fsType = "fuse"; + options = [ "force-user=pub" "create-for-user=wwwrun" "create-for-group=wwwrun" ]; + }; + environment.systemPackages = [ pkgs.bindfs ]; + # This value determines the NixOS release with which your system is # to be compatible, in order to avoid breaking some software such as # database servers. You should change this only after NixOS release -- 2.41.0