feat(Music): create samba share for music
This commit is contained in:
parent
0afbec2131
commit
a21d65df11
2 changed files with 32 additions and 1 deletions
29
void.nix
29
void.nix
|
|
@ -9,4 +9,33 @@
|
|||
];
|
||||
|
||||
networking.hostName = "void"; # Define your hostname.
|
||||
|
||||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
securityType = "user";
|
||||
extraConfig = ''
|
||||
workgroup = WORKGROUP
|
||||
server string = void
|
||||
netbios name = void
|
||||
security = user
|
||||
hosts allow = 0.0.0.0/0
|
||||
guest account = nobody
|
||||
map to guest = bad user
|
||||
log level = 4
|
||||
#smb encrypt = mandatory
|
||||
'';
|
||||
shares."Music" = {
|
||||
path = "/pile/Music";
|
||||
browsable = "yes";
|
||||
"read only" = "yes";
|
||||
"guest ok" = "no";
|
||||
"read list" = "@music";
|
||||
};
|
||||
};
|
||||
|
||||
users.users.music = {
|
||||
group = "music";
|
||||
isNormalUser = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue