feat(samba): 2nd try to get samba to work with scanner
This commit is contained in:
parent
0765d083c5
commit
367fc07863
2 changed files with 28 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ in
|
||||||
./borgbackup.nix
|
./borgbackup.nix
|
||||||
|
|
||||||
./ftp.nix
|
./ftp.nix
|
||||||
|
./samba.nix
|
||||||
|
|
||||||
(import ./acme.nix { inherit base-domain; })
|
(import ./acme.nix { inherit base-domain; })
|
||||||
(import ./nginx.nix { inherit base-domain; })
|
(import ./nginx.nix { inherit base-domain; })
|
||||||
|
|
|
||||||
27
samba.nix
Normal file
27
samba.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
securityType = "user";
|
||||||
|
extraConfig = ''
|
||||||
|
workgroup = WORKGROUP
|
||||||
|
server string = 005540.xyz
|
||||||
|
netbios name = 005540.xyz
|
||||||
|
security = user
|
||||||
|
hosts allow = 0.0.0.0/0
|
||||||
|
guest account = nobody
|
||||||
|
map to guest = bad user
|
||||||
|
log level = 2
|
||||||
|
'';
|
||||||
|
shares."paperless-upload" = {
|
||||||
|
path = "/var/lib/paperless/consume";
|
||||||
|
browsable = "yes";
|
||||||
|
"read only" = "no";
|
||||||
|
"guest ok" = "no";
|
||||||
|
"write list" = "@paperless-upload";
|
||||||
|
"read list" = "@paperless-upload";
|
||||||
|
"force user" = "paperless-upload";
|
||||||
|
"force group" = "paperless";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue