]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Export some directories to pub accounts
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 8 Aug 2020 13:57:28 +0000 (15:57 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sat, 8 Aug 2020 13:57:28 +0000 (15:57 +0200)
environments/immae-eu.nix
modules/private/system/eldiron.nix

index dddc1fd10cf7d978e6768f310e266464ab414f95..bcb7df4d58fdabcb82398625aa001156793e4781 100644 (file)
@@ -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
     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
 
     # other tools
     pgloader s3cmd lftp jq cpulimit libxslt gandi-cli
index b3bda5353056ac0febe39aa07639b77a5989c2f9..b2a728c1864fa8173c1fbe955491bc5427fa6376 100644 (file)
     ];
   };
 
     ];
   };
 
+  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
   # 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