From: Ismaƫl Bouya Date: Sat, 8 Aug 2020 13:57:28 +0000 (+0200) Subject: Export some directories to pub accounts X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=commitdiff_plain;h=f831eb7e4b04fe788883c5f630c70020895ce7fe Export some directories to pub accounts --- 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