-
-
Save benpye/2345a2de081bdea5a87d6368bd07ec9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services.samba = { | |
enable = true; | |
securityType = "share"; | |
extraConfig ='' | |
workgroup = WORKGROUP | |
server string = nixos | |
netbios name = nixos | |
security = share | |
hosts allow = 192.168 localhost | |
hosts deny = 0.0.0.0/0 | |
guest account = nobody | |
map to guest = bad user | |
''; | |
shares = { | |
library = { | |
path = "/mnt/pool/library"; | |
browseable = "yes"; | |
"read only" = "no"; | |
"guest ok" = "yes"; | |
"force user" = "nobody"; | |
"force group" = "nogroup"; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment