mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 22:50:19 +02:00
splitted apps + rewrote everything from scratch
This commit is contained in:
parent
7035632882
commit
ef42c9577a
20 changed files with 731 additions and 274 deletions
35
features/samba-shares.nix
Normal file
35
features/samba-shares.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ username, driveMountPoint }:
|
||||
|
||||
{
|
||||
# enable samba
|
||||
services.samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
extraConfig = ''
|
||||
workgroup = WORKGROUP
|
||||
server string = hyperserver
|
||||
netbios name = hyperserver
|
||||
security = user
|
||||
'';
|
||||
shares = {
|
||||
music = {
|
||||
path = "${driveMountPoint}/Music";
|
||||
browseable = "yes";
|
||||
"read only" = "no";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = username;
|
||||
};
|
||||
ebooks = {
|
||||
path = "${driveMountPoint}/Ebooks";
|
||||
browseable = "yes";
|
||||
"read only" = "no";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = username;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue