added user mounts
This commit is contained in:
parent
2fa019c567
commit
564554551c
34
home.nix
34
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user