chore(nix): update fileserver configuration

- Reformatted `netatalk` service dependencies for readability.
- Updated `hosts allow` setting to include `100.64.0.` for enhanced network access control.
This commit is contained in:
Harald Hoyer 2025-11-24 16:01:04 +01:00
parent bf82f7afa0
commit 7883fe4221

View file

@ -1,8 +1,15 @@
{ ... {
...
}: }:
{ {
systemd.services.netatalk.requires = [ "mnt-backup.mount" "mnt-raid.mount" ]; systemd.services.netatalk.requires = [
systemd.services.netatalk.after = [ "mnt-backup.mount" "mnt-raid.mount" ]; "mnt-backup.mount"
"mnt-raid.mount"
];
systemd.services.netatalk.after = [
"mnt-backup.mount"
"mnt-raid.mount"
];
services.netatalk = { services.netatalk = {
enable = false; enable = false;
settings = { settings = {
@ -54,7 +61,7 @@
"min protocol" = "SMB2"; "min protocol" = "SMB2";
"ea support" = "yes"; "ea support" = "yes";
#"max protocol" = "smb2"; #"max protocol" = "smb2";
"hosts allow" = "192.168.178. 127.0.0.1 localhost 2003::/16 ::1"; "hosts allow" = "100.64.0. 192.168.178. 127.0.0.1 localhost 2003::/16 ::1";
"hosts deny" = "ALL"; "hosts deny" = "ALL";
"guest account" = "nobody"; "guest account" = "nobody";
"map to guest" = "bad user"; "map to guest" = "bad user";