I followed this: https://nixos.wiki/wiki/Docker, and in my configuration.nix i have
users.users.<myUsername> = { #my actual username
isNormalUser = true;
description = "<myUsername>";
extraGroups = [ "networkmanager" "wheel" "kvm" "libvirtd" "docker"];
packages = with pkgs; [];
};
virtualisation.docker.enable = true;
and in /etc/group
docker:x:131:<myUsername>
I logged in and out but I still need to type sudo every time? I'm very new to nix and new-ish to linux and I have no idea what could be wrong. Any help is appreciated!
Logging in and back out was not enough. Restarting worked.