Configure UGent samba share
This commit is contained in:
@@ -74,4 +74,19 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Samba configuration
|
||||
fileSystems."/ugent" = {
|
||||
device = "//files.ugent.be/akasroua";
|
||||
fsType = "cifs";
|
||||
options = let
|
||||
automount_opts =
|
||||
"x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
|
||||
credentials = config.age.secrets.samba-ugent.path;
|
||||
|
||||
in [
|
||||
"${automount_opts},credentials=${credentials},noperm,vers=3.0,sec=ntlmv2i"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user