.github
.vscode
docs
hydra
keys
lib
modules
pkgs
systems
artemision
palatine-hill
attic
docker
haproxy
acme.nix
configuration.nix
default.nix
firewall.nix
gitea.nix
hardware-changes.nix
hardware.nix
hydra.nix
loki.nix
minio.nix
networking.nix
nextcloud.nix
postgresql.nix
samba.nix
secrets.yaml
vars.nix
zfs.nix
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
38 lines
888 B
Nix
38 lines
888 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
services.samba = {
|
||
|
enable = true;
|
||
|
securityType = "user";
|
||
|
openFirewall = true;
|
||
|
settings = {
|
||
|
global = {
|
||
|
"workgroup" = "WORKGROUP";
|
||
|
"server string" = "palatine-hill";
|
||
|
"netbios name" = "palatine-hill";
|
||
|
"security" = "user";
|
||
|
#"use sendfile" = "yes";
|
||
|
#"max protocol" = "smb2";
|
||
|
# note: localhost is the ipv6 localhost ::1
|
||
|
"hosts allow" = "192.168.76. 127.0.0.1 localhost";
|
||
|
"hosts deny" = "0.0.0.0/0";
|
||
|
"guest account" = "nobody";
|
||
|
"map to guest" = "bad user";
|
||
|
};
|
||
|
zfs-primary-backups = {
|
||
|
path = "/ZFS/ZFS-primary/backups";
|
||
|
|
||
|
writeable = "yes";
|
||
|
browseable = "yes";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.samba-wsdd = {
|
||
|
enable = true;
|
||
|
openFirewall = true;
|
||
|
};
|
||
|
|
||
|
networking.firewall.enable = true;
|
||
|
networking.firewall.allowPing = true;
|
||
|
}
|