{ pkgs, flake, ... }: let inherit (flake.config.services) instances ; service = instances.samba; in { # If you ever need to start fresh, you need to add yourself to the Samba users database: # sudo smbpasswd -a username services = { samba = { # package = pkgs.samba4Full; enable = true; openFirewall = true; settings = { "storage" = { path = "/mnt/storage"; writable = "true"; }; }; }; }; networking = { firewall = { allowedTCPPorts = [ service.ports.port0 ]; }; }; }