commit db00eb47097d29178db67795caa16b78db8ef3f7
parent 22e4b80e476468a9b08d9e269f9f142319b031b9
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 26 Feb 2025 21:12:25 +0100
parent 22e4b80e476468a9b08d9e269f9f142319b031b9
Author: Katja (ctucx) <git@ctu.cx>
Date: Wed, 26 Feb 2025 21:12:25 +0100
machines/briefkasten/scanner-sftp: bindmount to syncthing-share
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/machines/briefkasten/scanner-sftp.nix b/machines/briefkasten/scanner-sftp.nix @@ -2,8 +2,21 @@ { + environment.systemPackages = [ pkgs.bindfs ]; + # /ads1700w has to be owned by root:root, it's subdirectories by ads1700w user - environment.persistence."/nix/persist".directories = [ "/ads1700w" ]; + systemd.tmpfiles.settings."10-ads1700w_home"."/ads1700w".d = { + mode = "0755"; + user = "root"; + group = "root"; + }; + + fileSystems."/ads1700w/scans" = { + device = "/nix/persist/home/katja/syncthing/Documents/scans"; + fsType = "fuse./run/current-system/sw/bin/bindfs"; + noCheck = true; + options = [ "map=katja/ads1700w" ]; + }; users.users.ads1700w = { isNormalUser = true;