new smb-mount

This commit is contained in:
xunuwu 2024-10-22 11:48:35 +02:00
parent 2e16c32e32
commit e77d8b492d
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -7,6 +7,13 @@
type = "cifs";
options = builtins.readFile ./smbcreds;
}
{
description = "smb hopper vault";
what = "//192.168.50.97/vault"; # hopper local ip
where = "/server/vault";
type = "cifs";
options = "uid=xun,gid=users," + (builtins.readFile ./smbcreds);
}
];
systemd.automounts = [
{
@ -17,5 +24,13 @@
TimeoutIdleSec = "10min";
};
}
{
requires = ["network-online.target"];
where = "/server/vault";
wantedBy = ["multi-user.target"];
automountConfig = {
TimeoutIdleSec = "10min";
};
}
];
}