forked from nico/dots
samba: init
This commit is contained in:
parent
edc3090577
commit
0e23397308
2 changed files with 28 additions and 0 deletions
|
|
@ -83,4 +83,15 @@
|
|||
import block_non_private_ips
|
||||
'';
|
||||
};
|
||||
|
||||
# setup network samba share
|
||||
services.samba.settings = {
|
||||
"media" = {
|
||||
"path" = "/media/media";
|
||||
"valid users" = "@users";
|
||||
"force user" = "nobody";
|
||||
"public" = "no";
|
||||
"read only" = "yes";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
17
modules/services/samba.nix
Normal file
17
modules/services/samba.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
"workgroup" = "WORKGROUP";
|
||||
"server string" = "${config.networking.hostName}";
|
||||
"netbios name" = "${config.networking.hostName}";
|
||||
"security" = "user";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue