From e845f07213518422c3c724fb0b240bdce1f193fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Jun 2024 10:28:25 +0200 Subject: nixos/lipwig: automount sshfs This tries to cover correctly automount for sshfs filesystem. --- nixos/configurations/lipwig.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'nixos') diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix index 8e372c6..524a864 100644 --- a/nixos/configurations/lipwig.nix +++ b/nixos/configurations/lipwig.nix @@ -33,6 +33,10 @@ "/nas" = { device = "172.16.128.63:/nas/2682"; fsType = "nfs"; + options = [ + "_netdev" + "x-systemd.automount" + ]; }; "/nas/nextcloud-sync" = { device = "/nas/sync"; @@ -43,12 +47,11 @@ device = "nas@omnia.spt:/data/nas"; fsType = "fuse.sshfs"; options = [ - "noauto" - "x-systemd.automount" + "allow_other" "_netdev" + "x-systemd.automount" "reconnect" "identityfile=/run/secrets/nas.ssh.priv" - "allow_other" "idmap=user" "uid=nextcloud" "gid=nextcloud" -- cgit v1.2.3