nicks-nix-config/hosts/Alaska/modules/samba.nix

35 lines
737 B
Nix
Raw Normal View History

2024-12-28 09:40:05 -08:00
{osConfig, pkgs, ...}:
let
in {
services.samba = {
enable = true;
openFirewall = true;
settings = {
global.workgroup = "WORKGROUP";
2024-12-28 09:40:05 -08:00
global."invalid users" = [
"root"
];
global.security = "user";
global."passwd program" = "/run/wrappers/bin/passwd %u";
iceberg = {
2024-12-28 09:40:05 -08:00
comment = "the Alaska SMB share";
path = "/Aurora/SharedFolders/Iceberg";
"guest ok" = "no";
2024-12-28 09:40:05 -08:00
"read only" = "no";
browseable = "yes";
};
blizzard = {
comment = "Backed up Alaska SMB share";
path = "/Aurora/SharedFolders/Blizzard";
"guest ok" = "no";
"read only" = "no";
browseable = "yes";
};
2024-12-28 09:40:05 -08:00
};
};
}