Hello, I’ve been unable to get Samba working on my two NixOS workstations. I can ssh from one system to the other, rsync files between them, but can’t connect via Samba. Below is my current config. Anyone see anything obviously wrong with it?
Thanks, I actually do have the UDP ports enabled too, just forgot to include in my copy-paste.
Regarding users, all I want to do is to connect to Samba on machine1 using my user account on machine1. Is there a way to configure that in configuration.nix, without having to run any additional commandline commands? Do I need to add my user account to a Samba group or something like that?
I’m not a samba expert (I just happened to set it up recently), but as far as I know, your two options for authentication are AD and smbpasswd. There’s no way to make samba use the regular unix user database. You can poke around in the docs for more info: smb.conf
I haven’t seen any nix modules to do declarative smb passwords, though maybe someone has written one.