new smb-mount
This commit is contained in:
parent
2e16c32e32
commit
e77d8b492d
1 changed files with 15 additions and 0 deletions
|
@ -7,6 +7,13 @@
|
||||||
type = "cifs";
|
type = "cifs";
|
||||||
options = builtins.readFile ./smbcreds;
|
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 = [
|
systemd.automounts = [
|
||||||
{
|
{
|
||||||
|
@ -17,5 +24,13 @@
|
||||||
TimeoutIdleSec = "10min";
|
TimeoutIdleSec = "10min";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
requires = ["network-online.target"];
|
||||||
|
where = "/server/vault";
|
||||||
|
wantedBy = ["multi-user.target"];
|
||||||
|
automountConfig = {
|
||||||
|
TimeoutIdleSec = "10min";
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue