mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2025-01-18 07:53:28 -08:00
34 lines
737 B
Nix
34 lines
737 B
Nix
{osConfig, pkgs, ...}:
|
|
|
|
let
|
|
|
|
in {
|
|
services.samba = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings = {
|
|
global.workgroup = "WORKGROUP";
|
|
global."invalid users" = [
|
|
"root"
|
|
];
|
|
global.security = "user";
|
|
global."passwd program" = "/run/wrappers/bin/passwd %u";
|
|
iceberg = {
|
|
comment = "the Alaska SMB share";
|
|
path = "/Aurora/SharedFolders/Iceberg";
|
|
"guest ok" = "no";
|
|
"read only" = "no";
|
|
browseable = "yes";
|
|
};
|
|
blizzard = {
|
|
comment = "Backed up Alaska SMB share";
|
|
path = "/Aurora/SharedFolders/Blizzard";
|
|
"guest ok" = "no";
|
|
"read only" = "no";
|
|
browseable = "yes";
|
|
};
|
|
|
|
};
|
|
};
|
|
|
|
}
|