DeterminateSystems / nix-installer

Install Nix and flakes with the fast and reliable Determinate Nix Installer, with over 7 million installs.
https://determinate.systems
GNU Lesser General Public License v2.1
2.28k stars 59 forks source link

`nix profile install` results in a permission error after reinstalling nix #773

Open ilyagr opened 11 months ago

ilyagr commented 11 months ago

After uninstalling Nix with /nix/nix-installer uninstall and then reinstalling Nix with the installer, nix profile install nixpkgs#neofetch results in the following error:

error: creating a garbage collector root (/nix/store/yv32nxg7hwap0nkskm8v8wnkrvhj11q0-user-environment-1-link) in the Nix store is forbidden (are you running nix-build inside the store?)

A detailed transcript with verbose mode on is below. I tried restarting the system, it did not help.

Update: In fact, this seems unfortunately hard to reproduce. One thing I was trying to do was to get nix-env -i to work after using your installer (since it seems like the easiest way to use Nix as a package manager and share the list of packages between machines; I ran into some annoyances with flakes+home-manager, and it seems overly complicated). I was not successful and tried to reinstall Nix using your uninstaller, but perhaps some effect of nix-channel/nix-env wasn't detected by the uninstaller.

This happened after uninstalling nix using the uninstaller you provide. I couldn't reproduce the problem in a fresh container.

Meanwhile, nix-shell -p neofetch works. In fact, the output might be helpful:

$ neofetch
       _,met$$$$$gg.          ilyagr@penguin-t
    ,g$$$$$$$$$$$$$$$P.       ----------------
  ,g$$P"        """Y$$.".     OS: Debian GNU/Linux 12 (bookworm) on Chrome OS x86_64
 ,$$P'              `$$$.     Host: crosvm
',$$P       ,ggs.     `$$b:   Kernel: 6.1.60-08589-g295af3f6449b
`d$$'     ,$P"'   .    $$$    Uptime: 5 mins
 $$P      d$'     ,    $$P    Packages: 607 (dpkg), 48 (nix-default)
 $$:      $$.   -    ,d$$'    Shell: bash 5.2.15
 $$;      Y$b._   _,d$P'      DE: Generic (Wayland)
 Y$$.    `.`"Y$$$$P"'         Theme: CrosAdapta [GTK2/3]
 `$$b      "-.__              Icons: Adwaita [GTK2/3]
  `Y$$                        Terminal: tmux
   `Y$$.                      CPU: 12th Gen Intel i7-1265U (12) @ 2.688GHz
     `$$b.                    GPU: Red Hat, Inc. Virtio 1.0 GPU
       `Y$$b.                 Memory: 252MiB / 30236MiB
          `"Y$b._
              `"""
A transcript of what I did, including installing with `-v`. ``` 🐟 /nix/nix-installer uninstall `nix-installer` needs to run as `root`, attempting to escalate now via `sudo`... Nix uninstall plan (v0.15.1) Planner: linux (with default settings) Planned actions: * Unconfigure Nix daemon related settings with systemd * Remove the directory `/etc/tmpfiles.d` if no other contents exists * Unconfigure the shell profiles * Remove the Nix configuration in `/etc/nix/nix.conf` * Unset the default Nix profile * Remove Nix users and group * Remove the directory tree in `/nix` * Remove the directory `/nix` Proceed? ([Y]es/[n]o/[e]xplain): y INFO Revert: Remove directory `/nix/temp-install-dir` INFO Revert: Configure Nix daemon related settings with systemd INFO Revert: Create directory `/etc/tmpfiles.d` INFO Revert: Configure Nix INFO Revert: Create build users (UID 30000-30032) and group (GID 30000) INFO Revert: Provision Nix INFO Revert: Create directory `/nix` Nix was uninstalled successfully! [12:52 AM] penguin-t ~ 🐟 curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sudo sh -s -- install -v info: downloading installer (https://install.determinate.systems/nix/tag/v0.15.1/nix-installer-x86_64-linux) DEBUG plan:plan:plan: Creating directory `/usr/share/fish/vendor_conf.d` already complete is_mountpoint=false DEBUG plan: Creating directory `/etc/tmpfiles.d` already complete is_mountpoint=false Nix install plan (v0.15.1) Planner: linux (with default settings) Planned actions: * Create directory `/nix` * Fetch `https://releases.nixos.org/nix/nix-2.18.1/nix-2.18.1-x86_64-linux.tar.xz` to `/nix/temp-install-dir` * Create a directory tree in `/nix` * Move the downloaded Nix into `/nix` * Create build users (UID 30000-30032) and group (GID 30000) * Setup the default Nix profile * Place the Nix configuration in `/etc/nix/nix.conf` * Configure the shell profiles * Configure Nix daemon related settings with systemd * Remove directory `/nix/temp-install-dir` Proceed? ([Y]es/[n]o/[e]xplain): y INFO install: Step: Create directory `/nix` DEBUG install:try_execute: Executing: Create directory `/nix` DEBUG install:try_execute: Completed: Create directory `/nix` INFO install: Step: Provision Nix DEBUG install:try_execute: Executing: Provision Nix DEBUG install:try_execute:execute:create_nix_tree: Executing: Create a directory tree in `/nix` DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var` path=/nix/var user="root" mode=0o755 DEBUG fetch_and_unpack_nix: Executing: Fetch `https://releases.nixos.org/nix/nix-2.18.1/nix-2.18.1-x86_64-linux.tar.xz` to `/nix/temp-install-dir` url_or_path=https://releases.nixos.org/nix/nix-2.18.1/nix-2.18.1-x86_64-linux.tar.xz dest=/nix/temp-install-dir DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var` path=/nix/var user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/log` path=/nix/var/log user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/log` path=/nix/var/log user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/log/nix` path=/nix/var/log/nix user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/log/nix` path=/nix/var/log/nix user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/log/nix/drvs` path=/nix/var/log/nix/drvs user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/log/nix/drvs` path=/nix/var/log/nix/drvs user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix` path=/nix/var/nix user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix` path=/nix/var/nix user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/db` path=/nix/var/nix/db user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/db` path=/nix/var/nix/db user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/gcroots` path=/nix/var/nix/gcroots user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/gcroots` path=/nix/var/nix/gcroots user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/gcroots/per-user` path=/nix/var/nix/gcroots/per-user user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/gcroots/per-user` path=/nix/var/nix/gcroots/per-user user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/profiles` path=/nix/var/nix/profiles user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/profiles` path=/nix/var/nix/profiles user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/profiles/per-user` path=/nix/var/nix/profiles/per-user user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/profiles/per-user` path=/nix/var/nix/profiles/per-user user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/temproots` path=/nix/var/nix/temproots user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/temproots` path=/nix/var/nix/temproots user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/userpool` path=/nix/var/nix/userpool user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/userpool` path=/nix/var/nix/userpool user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Executing: Create directory `/nix/var/nix/daemon-socket` path=/nix/var/nix/daemon-socket user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree:execute:create_directory: Completed: Create directory `/nix/var/nix/daemon-socket` path=/nix/var/nix/daemon-socket user="root" mode=0o755 DEBUG install:try_execute:execute:create_nix_tree: Completed: Create a directory tree in `/nix` DEBUG fetch_and_unpack_nix: Completed: Fetch `https://releases.nixos.org/nix/nix-2.18.1/nix-2.18.1-x86_64-linux.tar.xz` to `/nix/temp-install-dir` url_or_path=https://releases.nixos.org/nix/nix-2.18.1/nix-2.18.1-x86_64-linux.tar.xz dest=/nix/temp-install-dir DEBUG install:try_execute:execute:mount_unpacked_nix: Executing: Move the downloaded Nix into `/nix` src=/nix/temp-install-dir dest="/nix/" DEBUG install:try_execute:execute:mount_unpacked_nix: Completed: Move the downloaded Nix into `/nix` src=/nix/temp-install-dir dest="/nix/" DEBUG install:try_execute: Completed: Provision Nix INFO install: Step: Create build users (UID 30000-30032) and group (GID 30000) DEBUG install:try_execute: Executing: Create build users (UID 30000-30032) and group (GID 30000) DEBUG install:try_execute:execute:create_group: Executing: Create group `nixbld` (GID 30000) user="nixbld" gid=30000 DEBUG install:try_execute:execute:create_group: Completed: Create group `nixbld` (GID 30000) user="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld1` (UID 30001) in group `nixbld` (GID 30000) user="nixbld1" uid=30001 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld1` (UID 30001) in group `nixbld` (GID 30000) user="nixbld1" uid=30001 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld2` (UID 30002) in group `nixbld` (GID 30000) user="nixbld2" uid=30002 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld2` (UID 30002) in group `nixbld` (GID 30000) user="nixbld2" uid=30002 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld3` (UID 30003) in group `nixbld` (GID 30000) user="nixbld3" uid=30003 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld3` (UID 30003) in group `nixbld` (GID 30000) user="nixbld3" uid=30003 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld4` (UID 30004) in group `nixbld` (GID 30000) user="nixbld4" uid=30004 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld4` (UID 30004) in group `nixbld` (GID 30000) user="nixbld4" uid=30004 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld5` (UID 30005) in group `nixbld` (GID 30000) user="nixbld5" uid=30005 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld5` (UID 30005) in group `nixbld` (GID 30000) user="nixbld5" uid=30005 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld6` (UID 30006) in group `nixbld` (GID 30000) user="nixbld6" uid=30006 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld6` (UID 30006) in group `nixbld` (GID 30000) user="nixbld6" uid=30006 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld7` (UID 30007) in group `nixbld` (GID 30000) user="nixbld7" uid=30007 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld7` (UID 30007) in group `nixbld` (GID 30000) user="nixbld7" uid=30007 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld8` (UID 30008) in group `nixbld` (GID 30000) user="nixbld8" uid=30008 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld8` (UID 30008) in group `nixbld` (GID 30000) user="nixbld8" uid=30008 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld9` (UID 30009) in group `nixbld` (GID 30000) user="nixbld9" uid=30009 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld9` (UID 30009) in group `nixbld` (GID 30000) user="nixbld9" uid=30009 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld10` (UID 30010) in group `nixbld` (GID 30000) user="nixbld10" uid=30010 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld10` (UID 30010) in group `nixbld` (GID 30000) user="nixbld10" uid=30010 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld11` (UID 30011) in group `nixbld` (GID 30000) user="nixbld11" uid=30011 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld11` (UID 30011) in group `nixbld` (GID 30000) user="nixbld11" uid=30011 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld12` (UID 30012) in group `nixbld` (GID 30000) user="nixbld12" uid=30012 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld12` (UID 30012) in group `nixbld` (GID 30000) user="nixbld12" uid=30012 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld13` (UID 30013) in group `nixbld` (GID 30000) user="nixbld13" uid=30013 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld13` (UID 30013) in group `nixbld` (GID 30000) user="nixbld13" uid=30013 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld14` (UID 30014) in group `nixbld` (GID 30000) user="nixbld14" uid=30014 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld14` (UID 30014) in group `nixbld` (GID 30000) user="nixbld14" uid=30014 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld15` (UID 30015) in group `nixbld` (GID 30000) user="nixbld15" uid=30015 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld15` (UID 30015) in group `nixbld` (GID 30000) user="nixbld15" uid=30015 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld16` (UID 30016) in group `nixbld` (GID 30000) user="nixbld16" uid=30016 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld16` (UID 30016) in group `nixbld` (GID 30000) user="nixbld16" uid=30016 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld17` (UID 30017) in group `nixbld` (GID 30000) user="nixbld17" uid=30017 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld17` (UID 30017) in group `nixbld` (GID 30000) user="nixbld17" uid=30017 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld18` (UID 30018) in group `nixbld` (GID 30000) user="nixbld18" uid=30018 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld18` (UID 30018) in group `nixbld` (GID 30000) user="nixbld18" uid=30018 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld19` (UID 30019) in group `nixbld` (GID 30000) user="nixbld19" uid=30019 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld19` (UID 30019) in group `nixbld` (GID 30000) user="nixbld19" uid=30019 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld20` (UID 30020) in group `nixbld` (GID 30000) user="nixbld20" uid=30020 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld20` (UID 30020) in group `nixbld` (GID 30000) user="nixbld20" uid=30020 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld21` (UID 30021) in group `nixbld` (GID 30000) user="nixbld21" uid=30021 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld21` (UID 30021) in group `nixbld` (GID 30000) user="nixbld21" uid=30021 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld22` (UID 30022) in group `nixbld` (GID 30000) user="nixbld22" uid=30022 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld22` (UID 30022) in group `nixbld` (GID 30000) user="nixbld22" uid=30022 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld23` (UID 30023) in group `nixbld` (GID 30000) user="nixbld23" uid=30023 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld23` (UID 30023) in group `nixbld` (GID 30000) user="nixbld23" uid=30023 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld24` (UID 30024) in group `nixbld` (GID 30000) user="nixbld24" uid=30024 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld24` (UID 30024) in group `nixbld` (GID 30000) user="nixbld24" uid=30024 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld25` (UID 30025) in group `nixbld` (GID 30000) user="nixbld25" uid=30025 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld25` (UID 30025) in group `nixbld` (GID 30000) user="nixbld25" uid=30025 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld26` (UID 30026) in group `nixbld` (GID 30000) user="nixbld26" uid=30026 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld26` (UID 30026) in group `nixbld` (GID 30000) user="nixbld26" uid=30026 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld27` (UID 30027) in group `nixbld` (GID 30000) user="nixbld27" uid=30027 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld27` (UID 30027) in group `nixbld` (GID 30000) user="nixbld27" uid=30027 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld28` (UID 30028) in group `nixbld` (GID 30000) user="nixbld28" uid=30028 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld28` (UID 30028) in group `nixbld` (GID 30000) user="nixbld28" uid=30028 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld29` (UID 30029) in group `nixbld` (GID 30000) user="nixbld29" uid=30029 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld29` (UID 30029) in group `nixbld` (GID 30000) user="nixbld29" uid=30029 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld30` (UID 30030) in group `nixbld` (GID 30000) user="nixbld30" uid=30030 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld30` (UID 30030) in group `nixbld` (GID 30000) user="nixbld30" uid=30030 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld31` (UID 30031) in group `nixbld` (GID 30000) user="nixbld31" uid=30031 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld31` (UID 30031) in group `nixbld` (GID 30000) user="nixbld31" uid=30031 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Executing: Create user `nixbld32` (UID 30032) in group `nixbld` (GID 30000) user="nixbld32" uid=30032 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:create_user: Completed: Create user `nixbld32` (UID 30032) in group `nixbld` (GID 30000) user="nixbld32" uid=30032 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld1` (UID 30001) to group `nixbld` (GID 30000) user="nixbld1" uid=30001 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld1` (UID 30001) to group `nixbld` (GID 30000) user="nixbld1" uid=30001 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld2` (UID 30002) to group `nixbld` (GID 30000) user="nixbld2" uid=30002 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld2` (UID 30002) to group `nixbld` (GID 30000) user="nixbld2" uid=30002 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld3` (UID 30003) to group `nixbld` (GID 30000) user="nixbld3" uid=30003 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld3` (UID 30003) to group `nixbld` (GID 30000) user="nixbld3" uid=30003 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld4` (UID 30004) to group `nixbld` (GID 30000) user="nixbld4" uid=30004 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld4` (UID 30004) to group `nixbld` (GID 30000) user="nixbld4" uid=30004 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld5` (UID 30005) to group `nixbld` (GID 30000) user="nixbld5" uid=30005 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld5` (UID 30005) to group `nixbld` (GID 30000) user="nixbld5" uid=30005 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld6` (UID 30006) to group `nixbld` (GID 30000) user="nixbld6" uid=30006 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld6` (UID 30006) to group `nixbld` (GID 30000) user="nixbld6" uid=30006 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld7` (UID 30007) to group `nixbld` (GID 30000) user="nixbld7" uid=30007 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld7` (UID 30007) to group `nixbld` (GID 30000) user="nixbld7" uid=30007 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld8` (UID 30008) to group `nixbld` (GID 30000) user="nixbld8" uid=30008 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld8` (UID 30008) to group `nixbld` (GID 30000) user="nixbld8" uid=30008 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld9` (UID 30009) to group `nixbld` (GID 30000) user="nixbld9" uid=30009 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld9` (UID 30009) to group `nixbld` (GID 30000) user="nixbld9" uid=30009 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld10` (UID 30010) to group `nixbld` (GID 30000) user="nixbld10" uid=30010 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld10` (UID 30010) to group `nixbld` (GID 30000) user="nixbld10" uid=30010 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld11` (UID 30011) to group `nixbld` (GID 30000) user="nixbld11" uid=30011 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld11` (UID 30011) to group `nixbld` (GID 30000) user="nixbld11" uid=30011 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld12` (UID 30012) to group `nixbld` (GID 30000) user="nixbld12" uid=30012 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld12` (UID 30012) to group `nixbld` (GID 30000) user="nixbld12" uid=30012 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld13` (UID 30013) to group `nixbld` (GID 30000) user="nixbld13" uid=30013 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld13` (UID 30013) to group `nixbld` (GID 30000) user="nixbld13" uid=30013 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld14` (UID 30014) to group `nixbld` (GID 30000) user="nixbld14" uid=30014 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld14` (UID 30014) to group `nixbld` (GID 30000) user="nixbld14" uid=30014 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld15` (UID 30015) to group `nixbld` (GID 30000) user="nixbld15" uid=30015 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld15` (UID 30015) to group `nixbld` (GID 30000) user="nixbld15" uid=30015 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld16` (UID 30016) to group `nixbld` (GID 30000) user="nixbld16" uid=30016 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld16` (UID 30016) to group `nixbld` (GID 30000) user="nixbld16" uid=30016 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld17` (UID 30017) to group `nixbld` (GID 30000) user="nixbld17" uid=30017 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld17` (UID 30017) to group `nixbld` (GID 30000) user="nixbld17" uid=30017 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld18` (UID 30018) to group `nixbld` (GID 30000) user="nixbld18" uid=30018 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld18` (UID 30018) to group `nixbld` (GID 30000) user="nixbld18" uid=30018 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld19` (UID 30019) to group `nixbld` (GID 30000) user="nixbld19" uid=30019 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld19` (UID 30019) to group `nixbld` (GID 30000) user="nixbld19" uid=30019 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld20` (UID 30020) to group `nixbld` (GID 30000) user="nixbld20" uid=30020 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld20` (UID 30020) to group `nixbld` (GID 30000) user="nixbld20" uid=30020 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld21` (UID 30021) to group `nixbld` (GID 30000) user="nixbld21" uid=30021 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld21` (UID 30021) to group `nixbld` (GID 30000) user="nixbld21" uid=30021 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld22` (UID 30022) to group `nixbld` (GID 30000) user="nixbld22" uid=30022 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld22` (UID 30022) to group `nixbld` (GID 30000) user="nixbld22" uid=30022 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld23` (UID 30023) to group `nixbld` (GID 30000) user="nixbld23" uid=30023 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld23` (UID 30023) to group `nixbld` (GID 30000) user="nixbld23" uid=30023 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld24` (UID 30024) to group `nixbld` (GID 30000) user="nixbld24" uid=30024 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld24` (UID 30024) to group `nixbld` (GID 30000) user="nixbld24" uid=30024 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld25` (UID 30025) to group `nixbld` (GID 30000) user="nixbld25" uid=30025 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld25` (UID 30025) to group `nixbld` (GID 30000) user="nixbld25" uid=30025 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld26` (UID 30026) to group `nixbld` (GID 30000) user="nixbld26" uid=30026 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld26` (UID 30026) to group `nixbld` (GID 30000) user="nixbld26" uid=30026 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld27` (UID 30027) to group `nixbld` (GID 30000) user="nixbld27" uid=30027 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld27` (UID 30027) to group `nixbld` (GID 30000) user="nixbld27" uid=30027 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld28` (UID 30028) to group `nixbld` (GID 30000) user="nixbld28" uid=30028 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld28` (UID 30028) to group `nixbld` (GID 30000) user="nixbld28" uid=30028 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld29` (UID 30029) to group `nixbld` (GID 30000) user="nixbld29" uid=30029 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld29` (UID 30029) to group `nixbld` (GID 30000) user="nixbld29" uid=30029 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld30` (UID 30030) to group `nixbld` (GID 30000) user="nixbld30" uid=30030 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld30` (UID 30030) to group `nixbld` (GID 30000) user="nixbld30" uid=30030 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld31` (UID 30031) to group `nixbld` (GID 30000) user="nixbld31" uid=30031 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld31` (UID 30031) to group `nixbld` (GID 30000) user="nixbld31" uid=30031 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Executing: Add user `nixbld32` (UID 30032) to group `nixbld` (GID 30000) user="nixbld32" uid=30032 groupname="nixbld" gid=30000 DEBUG install:try_execute:execute:add_user_to_group: Completed: Add user `nixbld32` (UID 30032) to group `nixbld` (GID 30000) user="nixbld32" uid=30032 groupname="nixbld" gid=30000 DEBUG install:try_execute: Completed: Create build users (UID 30000-30032) and group (GID 30000) INFO install: Step: Configure Nix DEBUG install:try_execute: Executing: Configure Nix DEBUG install:try_execute:execute:setup_default_profile: Executing: Setup the default Nix profile unpacked_path=/nix/temp-install-dir DEBUG install:try_execute:execute:place_nix_configuration: Executing: Place the Nix configuration in `/etc/nix/nix.conf` DEBUG install:try_execute:execute:place_nix_configuration:execute:create_directory: Executing: Create directory `/etc/nix` path=/etc/nix mode=0o755 DEBUG install:try_execute:execute:configure_shell_profile: Executing: Configure the shell profiles DEBUG install:try_execute:execute:configure_shell_profile:execute:create_directory: Executing: Create directory `/etc/zsh` path=/etc/zsh mode=0o755 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_directory: Completed: Create directory `/etc/zsh` path=/etc/zsh mode=0o755 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_directory: Executing: Create directory `/etc/fish/conf.d` path=/etc/fish/conf.d mode=0o755 DEBUG install:try_execute:execute:place_nix_configuration:execute:create_directory: Completed: Create directory `/etc/nix` path=/etc/nix mode=0o755 DEBUG install:try_execute:execute:place_nix_configuration:execute:create_or_merge_nix_config: Executing: Merge or create nix.conf file `/etc/nix/nix.conf` path=/etc/nix/nix.conf mode=0o664 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_directory: Completed: Create directory `/etc/fish/conf.d` path=/etc/fish/conf.d mode=0o755 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/etc/bashrc` path=/etc/bashrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/etc/profile.d/nix.sh` path=/etc/profile.d/nix.sh mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/etc/zsh/zshrc` path=/etc/zsh/zshrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/usr/share/fish/vendor_conf.d/nix.fish` path=/usr/share/fish/vendor_conf.d/nix.fish mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/etc/fish/conf.d/nix.fish` path=/etc/fish/conf.d/nix.fish mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/etc/bash.bashrc` path=/etc/bash.bashrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Executing: Create or insert file `/etc/zshrc` path=/etc/zshrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/etc/bashrc` path=/etc/bashrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/etc/fish/conf.d/nix.fish` path=/etc/fish/conf.d/nix.fish mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/usr/share/fish/vendor_conf.d/nix.fish` path=/usr/share/fish/vendor_conf.d/nix.fish mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/etc/zsh/zshrc` path=/etc/zsh/zshrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/etc/zshrc` path=/etc/zshrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/etc/profile.d/nix.sh` path=/etc/profile.d/nix.sh mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile:execute:create_or_insert_file: Completed: Create or insert file `/etc/bash.bashrc` path=/etc/bash.bashrc mode=0o644 DEBUG install:try_execute:execute:configure_shell_profile: Completed: Configure the shell profiles DEBUG install:try_execute:execute:place_nix_configuration:execute:create_or_merge_nix_config: Completed: Merge or create nix.conf file `/etc/nix/nix.conf` path=/etc/nix/nix.conf mode=0o664 DEBUG install:try_execute:execute:place_nix_configuration: Completed: Place the Nix configuration in `/etc/nix/nix.conf` DEBUG install:try_execute:execute:setup_default_profile: Completed: Setup the default Nix profile unpacked_path=/nix/temp-install-dir DEBUG install:try_execute: Completed: Configure Nix INFO install: Step: Create directory `/etc/tmpfiles.d` INFO install: Step: Configure Nix daemon related settings with systemd DEBUG install:try_execute: Executing: Configure Nix daemon related settings with systemd DEBUG install:try_execute: Completed: Configure Nix daemon related settings with systemd INFO install: Step: Remove directory `/nix/temp-install-dir` DEBUG install:try_execute: Executing: Remove directory `/nix/temp-install-dir` DEBUG install:try_execute: Completed: Remove directory `/nix/temp-install-dir` DEBUG install:self_test:discover: Discovered `sh` DEBUG install:self_test:discover: Discovered `bash` DEBUG install:self_test:discover: Discovered `fish` DEBUG install:self_test:self_test: Testing Nix install via `sh` command="\"sh\" \"-lc\" \"nix build --no-link --expr \\'derivation { name = \\\"self-test-sh-1701852770831\\\"; system = \\\"x86_64-linux\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"" DEBUG install:self_test:self_test: Testing Nix install via `bash` command="\"bash\" \"-lc\" \"nix build --no-link --expr \\'derivation { name = \\\"self-test-bash-1701852771183\\\"; system = \\\"x86_64-linux\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"" DEBUG install:self_test:self_test: Testing Nix install via `fish` command="\"fish\" \"-ic\" \"nix build --no-link --expr \\'derivation { name = \\\"self-test-fish-1701852771489\\\"; system = \\\"x86_64-linux\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"" DEBUG install:send: Sending diagnostic to `https://install.determinate.systems/nix/diagnostic` Nix was installed successfully! To get started using Nix, open a new shell or run `. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh` [12:52 AM] penguin-t ~ 🐟 fish [12:53 AM] penguin-t ~ 🐟 nix profile install --debug nixpkgs#neofetch evaluating derivation 'flake:nixpkgs#neofetch'... performing daemon worker op: 11 acquiring write lock on '/nix/var/nix/temproots/9039' performing daemon worker op: 1 using cache entry '{"name":"flake-registry.json","type":"file","url":"https://channels.nixos.org/flake-registry.json"}' -> '{"etag":"W/\"5af996fe37b5c4ba47ef9b3d545ba977b527e2dcdc6e926dda7787b7db6bcf6e\"","url":"https://channels.nixos.org/flake-registry.json"}', '/nix/store/5fjljy6g6l4lfdxcb1hjkg4bwrs2kqpx-flake-registry.json' performing daemon worker op: 11 performing daemon worker op: 12 looked up 'flake:nixpkgs' -> 'github:NixOS/nixpkgs/nixpkgs-unstable' performing daemon worker op: 11 performing daemon worker op: 1 using cache entry '{"name":"source","type":"file","url":"https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable"}' -> '{"etag":"W/\"20cffefdaa8b60d92c60c43f6da72c32ec9f3ff991f5a1761b6b439afb0dcea9\"","url":"https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable"}', '/nix/store/0d0k5wrzqyxfvj493jg4n8nyxyfhqxym-source' HEAD revision for 'https://api.github.com/repos/NixOS/nixpkgs/commits/nixpkgs-unstable' is 09ec6a0881e1a36c29d67497693a67a16f4da573 performing daemon worker op: 11 performing daemon worker op: 1 using cache entry '{"rev":"09ec6a0881e1a36c29d67497693a67a16f4da573","type":"git-tarball"}' -> '{"lastModified":1701693815,"rev":"09ec6a0881e1a36c29d67497693a67a16f4da573"}', '/nix/store/wk5dq7iwpd8yb4mnhb98k687kgdqachh-source' performing daemon worker op: 26 got tree '/nix/store/wk5dq7iwpd8yb4mnhb98k687kgdqachh-source' from 'github:NixOS/nixpkgs/09ec6a0881e1a36c29d67497693a67a16f4da573' checking access to '/nix/store/wk5dq7iwpd8yb4mnhb98k687kgdqachh-source/flake.nix' evaluating file '/nix/store/wk5dq7iwpd8yb4mnhb98k687kgdqachh-source/flake.nix' performing daemon worker op: 19 old lock file: { "nodes": { "root": {} }, "root": "root", "version": 7 } computing lock file node '' new lock file: { "nodes": { "root": {} }, "root": "root", "version": 7 } trying flake output attribute 'packages.x86_64-linux.neofetch' using cached attrset attribute '' trying flake output attribute 'legacyPackages.x86_64-linux.neofetch' trying flake output attribute 'neofetch' using cached attrset attribute '' using cached string attribute 'legacyPackages.x86_64-linux.neofetch.type' using cached string attribute 'legacyPackages.x86_64-linux.neofetch.drvPath' performing daemon worker op: 1 using cached list of strings attribute 'legacyPackages.x86_64-linux.neofetch.meta.outputsToInstall' performing daemon worker op: 40 querying info about missing paths... starting pool of 24 threads performing daemon worker op: 46 building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: created building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: woken up querying info about missing paths... starting pool of 24 threads entered goal loop building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: init building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: loading derivation building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: have derivation building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: done building of '/nix/store/gqmwd6jzcbjz1qfd1glg194jnrvx93hx-neofetch-unstable-2021-12-10.drv^man,out' from .drv file: goal destroyed created 2 symlinks in user environment performing daemon worker op: 39 error: creating a garbage collector root (/nix/store/yv32nxg7hwap0nkskm8v8wnkrvhj11q0-user-environment-1-link) in the Nix store is forbidden (are you running nix-build inside the store?) [12:53 AM] penguin-t ~ [1] 🐠 ```
Hoverbear commented 11 months ago

Prior to installing using this nix-installer, did you have any existing remnants of an old Nix install by chance? Some semantics around profiles changed in the last few versions and that may be related.

ilyagr commented 11 months ago

I ran /nix/nix-installer uninstall just before. Perhaps the problem is that the uninstaller left some traces of the old Nix install.

Hoverbear commented 10 months ago

It's possible you had some data in your home folder as well now that I think about it. There are some files (eg ~/.nix-profile, ~/.nix-channels) which are user based that the installer doesn't touch.

We might not have encountered this in our testing, too, since we use nix profile install over nix-env -i in most cases.

ilyagr commented 10 months ago

I do have a ~/.nix-profile and ~/.nix-defexpr, no ~/.nix-channels. I actually tried to set up the latter one time, but it didn't work out well with your installer, so I gave up on it. I use home-manager, so nix profile list lists a single "home-manager-path" entry.