From f89ff639c7cbd5de25a73b463ae7bb5c775daf58 Mon Sep 17 00:00:00 2001 From: materus Date: Sun, 21 Jun 2026 14:51:00 +0200 Subject: [PATCH] oldie: add samba --- nix-config/host/oldie/configuration.nix | 38 ++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/nix-config/host/oldie/configuration.nix b/nix-config/host/oldie/configuration.nix index 3498024..dc64e5e 100644 --- a/nix-config/host/oldie/configuration.nix +++ b/nix-config/host/oldie/configuration.nix @@ -84,7 +84,7 @@ autocomplete = "duckduckgo"; ban_time_on_fail = 5; max_ban_time_on_fail = 120; - favicon_resolver="duckduckgo"; + favicon_resolver = "duckduckgo"; }; outgoing = { @@ -111,6 +111,42 @@ }; }; } + + { + services.samba-wsdd.enable = true; + services.samba-wsdd.openFirewall = true; + services.samba = { + enable = true; + package = pkgs.sambaFull; + openFirewall = true; + settings = { + global = { + "workgroup" = "WORKGROUP"; + "server string" = "smbmaterus"; + "netbios name " = "smbmaterus"; + "security" = "user"; + "hosts allow" = "192.168.0. 192.168.122. 127.0.0.1 localhost"; + "hosts deny" = "0.0.0.0/0"; + "guest account" = "nobody"; + "map to guest" = "bad user"; + "allow insecure wide links" = "yes"; + }; + shared = { + "path" = "/mkk/mnt/data/share"; + "browseable" = "yes"; + "read only" = "no"; + "guest ok" = "no"; + "create mask" = "0644"; + "directory mask" = "0755"; + "force user" = "materus"; + "force group" = "users"; + "follow symlinks" = "yes"; + "wide links" = "yes"; + }; + + }; + }; + } ]; # Use the systemd-boot EFI boot loader.