From 564554551cf3f409f9dc2df2e17cb8ed134e9d27 Mon Sep 17 00:00:00 2001 From: Kristian Krsnik Date: Sun, 23 Jul 2023 06:36:08 +0200 Subject: [PATCH] added user mounts --- home.nix | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/home.nix b/home.nix index 721a98f..18fdf99 100644 --- a/home.nix +++ b/home.nix @@ -73,25 +73,9 @@ systemd.user.mounts = let home = "home-kristian"; in { - "${home}-Media" = { - Unit = { - Description = "Mount disk-1 with sshfs"; - After = ["graphical-session-pre.target"]; - PartOf = ["graphical-session-pre.target"]; - }; - Install = {WantedBy = ["graphical-session-pre.target"];}; - Mount = { - What = "kristian@krsnik.at:/mnt/TITAN/Media"; - Where = "/home/kristian/kristian/Media"; - Type = "fuse.sshfs"; - #Options=_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount - #TimeoutSec=60 - #Options = "resolve-symlinks"; - }; - }; "${home}-Documents" = { Unit = { - Description = "Mount disk-1 with sshfs"; + Description = "Mount Documents"; After = ["graphical.target "]; Wants = ["graphical.target"]; }; @@ -102,7 +86,21 @@ Type = "fuse.sshfs"; Options = "_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount"; TimeoutSec = 60; - #Options = "resolve-symlinks"; + }; + }; + "${home}-Media" = { + Unit = { + Description = "Mount Media"; + After = ["graphical.target "]; + Wants = ["graphical.target"]; + }; + Install = {WantedBy = ["default.target"];}; + Mount = { + What = "kristian@krsnik.at:/mnt/TITAN/Media"; + Where = "/home/kristian/Media"; + Type = "fuse.sshfs"; + Options = "_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount"; + TimeoutSec = 60; }; }; };