Try to hallucinate over all of samba config

This commit is contained in:
2025-10-07 10:52:25 +02:00
parent c2b7521bec
commit a40db2645b

View File

@@ -65,7 +65,7 @@
console.keyMap = "croat"; console.keyMap = "croat";
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = false;
# Enable sound with pipewire. # Enable sound with pipewire.
services.pulseaudio.enable = false; services.pulseaudio.enable = false;
@@ -83,6 +83,59 @@
#media-session.enable = true; #media-session.enable = true;
}; };
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
settings = {
global = {
"workgroup" = "SAMBA";
"security" = "user";
"passdb backend" = "tdbsam";
"vfs objects" = "acl_xattr";
"map acl inherit" = "yes";
"store dos attributes" = "yes";
};
"data" = {
"path" = "/mnt/data";
"read only" = "no";
"browsable" = "yes";
"guest ok" = "no";
"writable" = "yes";
"valid users" = "dave,jana";
};
"dave" = {
"path" = "/home/dave";
"read only" = "no";
"browsable" = "yes";
"guest ok" = "no";
"writable" = "yes";
"valid users" = "dave,jana";
};
"homework" = {
"path" = "/mnt/data/docker/volumes/captain--sync-data/_data/Homework";
"read only" = "no";
"browsable" = "yes";
"guest ok" = "no";
"writable" = "yes";
"valid users" = "dave";
};
"torrent" = {
"path" = "/home/dave/volumes/captain--torrent-downloads/_data";
"read only" = "no";
"browsable" = "yes";
"guest ok" = "no";
"writable" = "yes";
"valid users" = "dave";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true; # services.xserver.libinput.enable = true;
@@ -127,6 +180,7 @@
lazygit lazygit
tmux tmux
nixfmt-rfc-style nixfmt-rfc-style
btop
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
@@ -144,6 +198,8 @@
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;
networking.firewall.enable = true;
networking.firewall.allowPing = true;
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions