refactor: rename server: rpi4 -> home-server
This commit is contained in:
parent
8dcece0836
commit
8c52dfff36
6 changed files with 6 additions and 6 deletions
29
services/samba/home-server.nix
Normal file
29
services/samba/home-server.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Use `smbpasswd -a <user>` to set passwords
|
||||
# age.secrets.samba.file = ../../secrets/samba.age;
|
||||
|
||||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
securityType = "user";
|
||||
extraConfig = ''
|
||||
guest account = nobody
|
||||
map to guest = bad user
|
||||
use sendfile = true
|
||||
'';
|
||||
shares = {
|
||||
media = {
|
||||
path = "/media";
|
||||
public = "no";
|
||||
browseable = "yes";
|
||||
writeable = "yes";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = "felschr";
|
||||
"force group" = "users";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue