switching all smb to nfs
This commit is contained in:
parent
a1434cee4e
commit
68c5ca2ce7
3 changed files with 9 additions and 42 deletions
|
@ -3,15 +3,13 @@
|
|||
{
|
||||
fileSystems =
|
||||
let
|
||||
automount-opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,noperm,uid=1000";
|
||||
# filez-opts = automount-opts + ",credentials=/etc/nixos/filez-secrets";
|
||||
media-server-opts = automount-opts + ",credentials=/etc/nixos/media-server-secrets";
|
||||
opts = [ "nfsvers=4.1" "noatime" "noauto" "x-systemd.automount" ];
|
||||
in {
|
||||
|
||||
"/mnt/import" = {
|
||||
device = "//media-server/import";
|
||||
fsType = "smb3";
|
||||
options = [ "${media-server-opts}" ];
|
||||
device = "media-server:/import";
|
||||
fsType = "nfs";
|
||||
options = opts;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue