2022/11/09/Nix issue

From Mew
< 2022/11/09
Revision as of 20:50, 9 November 2022 by Woozle (talk | contribs) (Created page with "{{fmt/title|the Nix upgrade script issue: Day Two}} {{subpage/date}} [https://toot.cat/@jhelwig/109314571331799093 Jacob Helwig suggested] that I look at user groups. My user...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

the Nix upgrade script issue: Day Two

Tuesday Wednesday Thursday

Jacob Helwig suggested that I look at user groups. My user (woozle, i.e. my usual login on this machine) is indeed not in the nix-users group -- but adding myself to the nix-users group doesn't seem to help:

woozle@SamEagle:~/nextcloud/statler/woozle/projects/web/Mastodon/TootCat/nixos-config$ nix develop --extra-experimental-features nix-command
error: getting status of /nix/var/nix/daemon-socket/socket: Permission denied

Invoking sudo does at least produce a different result:

woozle@SamEagle:~/nextcloud/statler/woozle/projects/web/Mastodon/TootCat/nixos-config$ sudo nix develop --extra-experimental-features nix-command
error: experimental Nix feature 'flakes' is disabled; use '--extra-experimental-features flakes' to override

I don't recall needing to jump through these hoops when I first ran this script, successfully, some months ago... but maybe it makes a difference that I'm now using a distro (Linux Mint 21) that is a little bit behind the distro I was using then (Ubuntu-MATE 22.04). Maybe Nix can be used to update itself to the most recent version?