2022/11/09/Nix issue

From Mew
< 2022/11/09
Revision as of 21:45, 9 November 2022 by Woozle (talk | contribs)
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?

A Nixpert (I don't know if she wants credit/identification) in the TootCat Discord is providing me with some more information, as is shadow!admin. The following command should override the error messages:

nix --extra-experimental-features 'nix-command flakes' develop

Explanation for why "develop" is outside the single-quotes: "develop is a subcommand. this is just nix develop but with some features enabled." I don't entirely understand that, but maybe it will make sense later, and it gives me a bit more context.

error: experimental Nix feature 'nix-command' is disabled; use '--extra-experimental-features nix-command' to override
woozle@SamEagle:~/nextcloud/statler/woozle/projects/web/Mastodon/TootCat/nixos-config$ nix --extra-experimental-features 'nix-command flakes' develop
error: getting status of /nix/var/nix/daemon-socket/socket: Permission denied

/sidetrack: why won't usermod work. [SOLVED]