Network-Manager from Home-Manager

Must network-manager be enabled in /etc/nixos/configuration.nix or can it be enabled per user from home-manager?

I made an issue for this a while back here but I don’t think there’s been any progress. NetworkManager stores user connections in /etc/NetworkManager/system-connections/ but that’s only accessible by root, so I’m not sure what way to add to that other than using nmcli imperatively. I’d happily make the module myself if I knew an optimal way to use NetworkManager here.

1 Like

So I have this in mind as well today, but aside from the root issue(which is ok if we write it directly when we rebuild), another issue I have in mind is security. I think we need to hash the wifi password first.

You can use nm-connection-editor, again imperative, but maybe simpler