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 systemd.user.mounts = let
home = "home-kristian"; home = "home-kristian";
in { 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" = { "${home}-Documents" = {
Unit = { Unit = {
Description = "Mount disk-1 with sshfs"; Description = "Mount Documents";
After = ["graphical.target "]; After = ["graphical.target "];
Wants = ["graphical.target"]; Wants = ["graphical.target"];
}; };
@ -102,7 +86,21 @@
Type = "fuse.sshfs"; Type = "fuse.sshfs";
Options = "_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount"; Options = "_netdev,reconnect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount";
TimeoutSec = 60; 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;
}; };
}; };
}; };