Separate host-specific samba and disk health config
This commit is contained in:
parent
16cd2e5cbf
commit
617ab047a9
3 changed files with 182 additions and 58 deletions
|
|
@ -4,11 +4,11 @@
|
|||
./disk-config.nix
|
||||
./containers.nix # Host-specific container definitions
|
||||
./proxy.nix # Host-specific Traefik dynamic configuration
|
||||
./disk-health.nix # Host-specific disk health monitoring
|
||||
../../../modules/tailscale.nix
|
||||
../../../modules/podman.nix
|
||||
../../../modules/traefik.nix
|
||||
../../../modules/samba.nix
|
||||
../../../modules/disk-health.nix
|
||||
../../../modules/borg.nix
|
||||
];
|
||||
|
||||
|
|
@ -222,6 +222,29 @@
|
|||
# Enable experimental nix features
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# Samba file sharing configuration
|
||||
services.samba-custom = {
|
||||
enable = true;
|
||||
serverString = "hs NAS Server";
|
||||
workgroup = "WORKGROUP";
|
||||
shares = {
|
||||
Media = {
|
||||
path = "/mnt/storage/Media";
|
||||
comment = "Media Storage";
|
||||
browseable = true;
|
||||
readOnly = false;
|
||||
guestOk = false;
|
||||
createMask = "0644";
|
||||
directoryMask = "0755";
|
||||
forceUser = "yanlin";
|
||||
forceGroup = "users";
|
||||
validUsers = [ "yanlin" ];
|
||||
};
|
||||
};
|
||||
enableWSDD = true;
|
||||
openFirewall = false;
|
||||
};
|
||||
|
||||
# Borg backup configuration
|
||||
services.borgbackup-custom = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue