aboutsummaryrefslogtreecommitdiff
path: root/nixos/configurations
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-06-12 10:28:25 +0200
committerKarel Kočí <cynerd@email.cz>2024-06-12 10:28:25 +0200
commite845f07213518422c3c724fb0b240bdce1f193fb (patch)
tree1fe13084260dcccba8d2498340da4cf8f4f12190 /nixos/configurations
parent993a2c5512f7757c45d7ff802065b899cb898b0c (diff)
downloadnixos-personal-e845f07213518422c3c724fb0b240bdce1f193fb.tar.gz
nixos-personal-e845f07213518422c3c724fb0b240bdce1f193fb.tar.bz2
nixos-personal-e845f07213518422c3c724fb0b240bdce1f193fb.zip
nixos/lipwig: automount sshfs
This tries to cover correctly automount for sshfs filesystem.
Diffstat (limited to 'nixos/configurations')
-rw-r--r--nixos/configurations/lipwig.nix9
1 files changed, 6 insertions, 3 deletions
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"