absolutely new to NixOS and having an issue with Samba.
I started with the Samba wiki entry, copying & pasting the server example (adapting the paths).
Credential used to access SMB shares I can connect to shared resources on other computers. So far, so good.
Issue starts when I try to share from NixOS.
Tried with Dolphin, but in the “Share” tab shows a “Samba is not installed on your system” message. I then installed
kdeApplications.kdenetwork-filesharing (is this necessary?), and the issue persists.
A few attempts that I did.
# systemctl restart samba from the Wiki page fails. Perhaps Samba is actually not installed!, but the command
# systemctl restart samba-smbd works. Nothing changes, but I assume now that Samba is installed. And it seems to be the case.
$ ls /etc/samba/smb.conf /etc/samba/smb.conf
services are enabled:
$ systemctl list-unit-files | grep samba samba-nmbd.service enabled samba-setup.service linked samba-smbd.service enabled samba-winbindd.service enabled samba.target enabled
Probably not necessary, but I tried with
Rebooted. Nothing. Tried something else:
$ net rpc user Enter WORKGROUP\max's password: max $ net rpc share list -U max Enter WORKGROUP\max's password: private public IPC$
$ net usershare info --long net usershare: usershares are currently disabled
Interesting… Can be this the problem?
After searching in the Wiki, Google, etc I have no clues: how to enable usershares in NixOS (if this is the point)?
If it can help, I have a gist with the excerpt that I use,
$ nix --version nix (Nix) 2.2.2 system.stateVersion = "19.03";