splitted apps + rewrote everything from scratch

This commit is contained in:
chloe 2024-07-14 15:48:01 +02:00
parent 7035632882
commit ef42c9577a
20 changed files with 731 additions and 274 deletions

35
features/samba-shares.nix Normal file
View 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;
};
};
};
}