added user mounts

This commit is contained in:
Kristian Krsnik 2023-07-23 06:36:08 +02:00
parent 2fa019c567
commit 564554551c

View File

@ -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;
};
};
};