Install samba to greatyamada
This commit is contained in:
parent
1700367658
commit
de6026cb84
2 changed files with 21 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
||||||
./pgadmin.nix
|
./pgadmin.nix
|
||||||
./postgresql.nix
|
./postgresql.nix
|
||||||
./radicale.nix
|
./radicale.nix
|
||||||
|
./samba.nix
|
||||||
./searxng.nix
|
./searxng.nix
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
|
|
20
hosts/greatyamada/services/samba.nix
Normal file
20
hosts/greatyamada/services/samba.nix
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{ ... }: {
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
global = {
|
||||||
|
"invalid users" = [ "root" ];
|
||||||
|
"passwd program" = "/run/wrappers/bin/passwd %u";
|
||||||
|
security = "user";
|
||||||
|
};
|
||||||
|
"PS2" = {
|
||||||
|
path = "/mnt/hdd-01/PS2";
|
||||||
|
browseable = "yes";
|
||||||
|
"read only" = "yes";
|
||||||
|
"guest ok" = "yes";
|
||||||
|
comment = "PS2 game share";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue