From 94bf32731b9c661dda5bbdf70f635c2f44697a65 Mon Sep 17 00:00:00 2001 From: xezo360hye Date: Wed, 7 Aug 2024 21:02:33 +0300 Subject: [PATCH] feat(system): Add remote sshfs filesystem --- system/common.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/system/common.nix b/system/common.nix index f7c1613..cf7c5ac 100644 --- a/system/common.nix +++ b/system/common.nix @@ -12,6 +12,20 @@ in services.openssh.enable = true; + # Router shared filesystem + fileSystems."/home/andrey/Public" = { + device = "root@192.168.2.1:/mnt/sda1"; + fsType = "sshfs"; + options = [ + "nodev" + "noatime" + "allow_other" + "reconnect" + "IdentityFile=/home/andrey/.ssh/id_ed25519" + ]; + }; + + # l10n and i8n time.timeZone = "Europe/Riga"; i18n.defaultLocale = "en_US.UTF-8";