From 4c26720400fe79a8968c07a5785eef7ea8fe9251 Mon Sep 17 00:00:00 2001 From: xenia Date: Sat, 14 Jun 2025 21:21:30 +0200 Subject: [PATCH] fix mnt/media fs --- nixos/machines/gender-station/machine.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nixos/machines/gender-station/machine.nix b/nixos/machines/gender-station/machine.nix index 4fd4b079..a895709b 100644 --- a/nixos/machines/gender-station/machine.nix +++ b/nixos/machines/gender-station/machine.nix @@ -43,8 +43,15 @@ fileSystems."/mnt/media" = { device = "xenia@10.100.100.254:/media"; - fsType = "fuse.sshfs"; - options = [ "IdentityFile=/home/xenia/.ssh/id_ed25519" "allow_other" "uid=1002" "gid=1002" "x-systemd.automount" "noauto" ]; + fsType = "sshfs"; + options = [ + "IdentityFile=/home/xenia/.ssh/id_ed25519" + "StrictHostKeyChecking=no" # if the host is not in the known_hosts file, mount will silently mount + "allow_other" "uid=1000" "gid=1000" + "x-systemd.automount" + "noauto" + "reconnect" + ]; }; boot.supportedFilesystems."fuse.sshfs" = true;