refactor: abstract NFS mount creation via custom options
This commit is contained in:
parent
d4d655e735
commit
1403b1f9c0
9 changed files with 93 additions and 120 deletions
|
|
@ -20,18 +20,13 @@ in {
|
|||
lib.mkIf cfg.enable {
|
||||
homelab.virtualisation.containers.enable = true;
|
||||
|
||||
fileSystems."/srv/freshrss" = {
|
||||
homelab.nfsMounts."/srv/freshrss" = {
|
||||
device = "192.168.0.11:/mnt/SMALL/CONFIG/FRESHRSS";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"rw"
|
||||
extraOptions = [
|
||||
"auto"
|
||||
"nfsvers=4.2"
|
||||
"async" "soft" "timeo=600"
|
||||
"timeo=600"
|
||||
"retrans=2"
|
||||
"_netdev"
|
||||
"nosuid"
|
||||
"tcp"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue