The new 21.05 is not installed. Tried 4 editions, all ended with an installation error. mailcap: not found.
and three more packages were not found.
please review the release notes, also, do you mind posting the errors and the commands you did?
Is this perhaps related to nixos-install fails with getting attributes of path /nix/store/...: No such file or directory · Issue #126141 · NixOS/nixpkgs · GitHub?
do you mind doing nix log <failed .drv>
?
Also please post the configuration.nix and nix-shell -p nix-info --run "nix-info -m"
information.
Sorry, but I have already uninstalled NixOS. the impression of these errors is completely spoiled. I will install some other distribution
Minimal, gnome and plasma installs of 21.05 from the download page and a hydra succsful build failed to install with /nix/store/ errors referring to firmware. I fad similar firmware insallation failures with Archlinux and a cursory search suggests there might be a problem with kernel-5.12 which might be worth lokking into. Obviously I had no nixos to run the commands you requested.
Now I will try to install a new edition, and if the installation is satisfied with an error, then I will send all the files you requested
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./pkgs.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
#boot.loader.grub.enable = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
#boot.loader.grub.efiInstallAsRemovable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.useOSProber = true;
networking.hostName = "heresy"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Set your time zone.
time.timeZone = "Asia/Yekaterinburg";
time.hardwareClockInLocalTime = true;
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.networkmanager.enable = true;
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n.defaultLocale = "ru_RU.UTF-8";
console = {
font = "cyr-sun16";
keyMap = "ru";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable Nvidia Drivers
nixpkgs.config.allowUnfree = true;
# nixpkgs.config.allowBroken = true;
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.deviceSection = ''
Option "Coolbits" "4"
'';
hardware.opengl.driSupport32Bit = true;
#Update Microcode Processor (Intel)
hardware.cpu.intel.updateMicrocode = true;
# Enable the Plasma 5 Desktop Environment.
# services.xserver.displayManager.sddm.enable = true;
# services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.lightdm.enable = true;
services.xserver.windowManager.herbstluftwm.enable = true;
services.xserver.desktopManager.xfce.enable = true;
services.xserver.desktopManager.xfce.enableXfwm = true;
# services.xserver.windowManager.openbox.enable = true;
services.xserver.desktopManager.xfce.thunarPlugins = [ pkgs.xfce.thunar-archive-plugin ];
sound.mediaKeys.enable = true;
# Configure keymap in X11
services.xserver.layout = "us,ru";
services.xserver.xkbModel = "pc105";
#services.xserver.xkbVariant =
services.xserver.xkbOptions = "grp:alt_shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp,compose:ralt";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
security.sudo.enable = true;
users.users.lars = {
isNormalUser = true;
shell = pkgs.zsh;
extraGroups = [ "wheel" "networkmanager"]; # Enable ‘sudo’ for the user.
hashedPassword = "";
};
users.users.root = {
shell = pkgs.zsh;
};
programs.zsh.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
# environment.systemPackages = with pkgs; [mailcap zsh zsh-syntax-highlighting zsh-history zsh-nix-shell zsh-completions nix-zsh-completions oh-my-zsh vim mc lynx termite firefox microcodeIntel alacritty polybarFull dzen2 dmenu rofi];
# environment.systemPackages = with pkgs; imports = [
# ./pkglist.nix
# ];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment?
#Enables Service gvfs
services.gvfs.enable = true;
# services.gvfs.package = "1.48.1";
security.polkit.enable = true;
services.udisks2.enable = true;
security.polkit.adminIdentities = [ "unix-group:wheel" ];
services.dbus.enable = true;
programs.gnome-disks.enable = true;
programs.fuse.mountMax = 1000;
programs.fuse.userAllowOther = true;
security.pam.mount.enable = true;
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
subject.user == "lars") {
return polkit.Result.YES;
}
});
'';
#Clean system
#nix.gc = {
#automatic = true;
#dates = "weekly";
#options = "--delete-older-than 30d";
#};
}
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs;
[#alacritty
adapta-gtk-theme
solarc-gtk-theme
arc-icon-theme
mate.atril
b43FirmwareCutter
betterlockscreen
bind
binutils
bison
bmon
btrfs-progs
cava
colorpicker
compton
crda
cairo
cairomm
catfish
cantarell-fonts
cifs-utils
colord
curl
cvs
dav1d
db
dbus
dbus_libs
dbus-glib
discord
gnome3.file-roller
fontconfig
flex
fribidi
gnome2.GConf
gsettings_desktop_schemas
graphene
graphite2
harfbuzzFull
highlight
jbig2dec
lz4
lzip
lzo
lzo
ncurses
micro
orc
pinentry
pixman
polkit_gnome
shared-mime-info
gnutar
tmux
traceroute
whois
x264
x265
xvidcore
mpg123
lzma
xzoom
commonsCompress
zstd
darkhttpd
ddrescue
dialog
diffutils
dmraid
dnsmasq
dosfstools
dunst
edk2
ethtool
exfat
exfat-utils
faac
faad2
flac
fuse_exfat
fuse3
f2fs-tools
fakeroot
feh
ffmpeg-full
ffmpegthumbnailer
fsarchiver
geany-with-vte
netcat-gnu
gotop
gparted
gpm
gptfdisk
gst_all_1.gst-vaapi
gst_all_1.gst-libav
gst_all_1.gst-plugins-bad
gst_all_1.gst-plugins-ugly
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-base
gtk-engine-murrine
gvfs
mtpfs
haveged
hdparm
htop
zenith
imagemagick
inetutils
microcodeIntel
irssi
iwd
jfsutils
jq
ksuperkey
lftp
linuxHeaders
lxappearance
gtk2-x11
gtk3-x11
gtk_engines
lynx
mc
mdadm
mpd
mpv-unwrapped
mpvc
mtools
nano
nbd
ncdu
ncmpcpp
ndisc6
networkmanager
networkmanager_dmenu
networkmanager_openvpn
nfs-utils
nilfs-utils
nitrogen
nmap
twmn
noto-fonts
ntfs3g
ntp
nvme-cli
#obconf
#openbox-menu
#openbox
#openconnect
openssh
openvpn
p7zip
fuse-7z-ng
partclone
partimage
gnupatch
pavucontrol
polybarFull
ppp
pulseaudioFull
pv
ranger
reiserfsprogs
rpPPPoE
rsync
rxvt_unicode-with-plugins
scrot
sdparm
sg3_utils
smartmontools
gsmartcontrol
sxhkd
terminus_font_ttf
termite
testdisk
xfce.thunar
xfce.thunar-bare
xfce.thunar-volman
xfce.thunar-archive-plugin
toilet
dejavu_fonts
tty-clock
xfce.tumbler
usermount
unrar
unzip
usb_modeswitch
usbutils
viewnior
vim
vifm-full
vpnc
wget
wireless-regdb
wirelesstools
wpa_supplicant
xarchiver
xclip
xdg-user-dirs
xfce.xfce4-power-manager
xfce.xfce4-settings
xfsprogs
xl2tpd
xmlstarlet
xorg.xfd
xorg.xset
xorg.xkill
xorg.xrdb
xorg.fonttosfnt
yad
git
zip
zsh
nix-zsh-completions
zsh-syntax-highlighting
zsh-completions
zsh-history
zsh-nix-shell
oh-my-zsh
w3m
firefox
neovim
xkbmon
a52dec
herbstluftwm
bzip2
cabextract
dzen2
python3Full
rtorrent
deluge
cacert
dmenu
rofi
textfonts
iosevka
noto-fonts
terminus-nerdfont
terminus_font
tewi-font
udisks
usermount
pam_mount
elogind
];
}
I just did an install from the minimal iso using the graphical install with nixos-up. And got this same error with cantarell fonts. I worked around it by commenting out the graphical options.
you should do either grub or systemd, but not both. systemd should be used if your mobo has uefi support, otherwise grub.
https://nixos.org/manual/nixos/stable/index.html#sec-installation
The 20.09 release with the same configuration is installed without any problems.
Trying to run the configuration, it seems like the main issue is that there’s many conflicts between packages. And NixOS can’t build certain paths because it doesn’t know which path to take from all the packages:
jav6l2rz9bfriwfpi6plrv0xjrph63i-gconf-3.2.6/lib/gio/modules/giomodule.cache'
error: builder for '/nix/store/vn6h3bpmxz2v00y076q7pbhzyxj891mm-tmp.drv' failed with exit code 25;
last 1 log lines:
> collision between `/nix/store/2saardbz5v924vrngnwnzsifjrn6hdgc-gvfs-1.48.1/lib/gio/modules/giomodule.cache' and `/nix/store/5jav6l2rz9bfriwfpi6plrv0xjrph63i-gconf-3.2.6/lib/gio/modules/giomodule.cache'
Even after resolving the above issue (by patching builds), there was a few others
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
#./pkgs.nix
];
# Use the systemd-boot EFI boot loader.
#boot.loader.systemd-boot.enable = true;
#boot.loader.efi.canTouchEfiVariables = true;
#boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/sdc1/";
boot.loader.efi.efiSysMountPoint = "/boot/efi";
#boot.loader.grub.efiInstallAsRemovable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.useOSProber = true;
networking.hostName = "heresy"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
# Set your time zone.
time.timeZone = "Asia/Yekaterinburg";
time.hardwareClockInLocalTime = true;
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.networkmanager.enable = true;
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties.
i18n.defaultLocale = "ru_RU.UTF-8";
console = {
font = "cyr-sun16";
keyMap = "ru";
};
# Enable the X11 windowing system.
services.xserver.enable = true;
# Enable Nvidia Drivers
nixpkgs.config.allowUnfree = true;
# nixpkgs.config.allowBroken = true;
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.deviceSection = ''
Option "Coolbits" "4"
'';
hardware.opengl.driSupport32Bit = true;
#Update Microcode Processor (Intel)
hardware.cpu.intel.updateMicrocode = true;
# Enable the Plasma 5 Desktop Environment.
# services.xserver.displayManager.sddm.enable = true;
# services.xserver.desktopManager.plasma5.enable = true;
services.xserver.displayManager.lightdm.enable = true;
# services.xserver.windowManager.herbstluftwm.enable = true;
services.xserver.desktopManager.xfce.enable = true;
services.xserver.desktopManager.xfce.enableXfwm = true;
# services.xserver.windowManager.openbox.enable = true;
services.xserver.desktopManager.xfce.thunarPlugins = [ pkgs.xfce.thunar-archive-plugin ];
sound.mediaKeys.enable = true;
# Configure keymap in X11
services.xserver.layout = "us,ru";
services.xserver.xkbModel = "pc105";
#services.xserver.xkbVariant =
services.xserver.xkbOptions = "grp:alt_shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp,compose:ralt";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
# Define a user account. Don't forget to set a password with ‘passwd’.
security.sudo.enable = true;
users.users.lars = {
isNormalUser = true;
description = "Darth Lars";
shell = pkgs.zsh;
extraGroups = [ "wheel" "networkmanager"]; # Enable ‘sudo’ for the user.
hashedPassword = "xxx";
};
users.users.root = {
shell = pkgs.zsh;
};
programs.zsh.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
# environment.systemPackages = with pkgs; [mailcap zsh zsh-syntax-highlighting zsh-history zsh-nix-shell zsh-completions nix-zsh-completions oh-my-zsh vim mc lynx termite firefox microcodeIntel alacritty polybarFull dzen2 dmenu rofi];
environment.systemPackages = with pkgs; [
btrfs-progs
ntfs3g
zstd
firefox
mc
vim
zsh
];
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.05"; # Did you read the comment?
#Enables Service gvfs
services.gvfs.enable = true;
# services.gvfs.package = "1.48.1";
security.polkit.enable = true;
services.udisks2.enable = true;
security.polkit.adminIdentities = [ "unix-group:wheel" ];
services.dbus.enable = true;
programs.gnome-disks.enable = true;
programs.fuse.mountMax = 1000;
programs.fuse.userAllowOther = true;
security.pam.mount.enable = true;
security.polkit.extraConfig = ''
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
subject.user == "lars") {
return polkit.Result.YES;
}
});
'';
#Clean system
#nix.gc = {
#automatic = true;
#dates = "weekly";
#options = "--delete-older-than 30d";
#};
}
I installed the 20.09 release. made an upgrade to the 21.05 release without any problems. but clean install of 21.05 release fails. I tried all the published ISO images since the opening of this topic.
This happens to me too, in the 21.11 293089 version it installs fine, but on newer versions of the iso it can’t be installed, on every new version the package giving issues changes although when upgrading from the working version nothing breaks, the last time I tested recursive font and amdvlk were giving me this issues.
Here’s my configuration.nix:
{ config, pkgs, ... }:
let
blockedHosts = pkgs.fetchurl {
url = "https://someonewhocares.org/hosts/zero/hosts";
sha256 = "changeme";
};
myAspell = pkgs.aspellWithDicts(ps: with ps; [
es
en
]);
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "link-pc"; # Define your hostname.
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking = {
useDHCP = false;
networkmanager.enable = true;
interfaces = {
enp2s0.useDHCP = true;
};
extraHosts = ''
${builtins.readFile blockedHosts}
'';
};
# Select internationalisation properties.
i18n.defaultLocale = "es_ES.UTF-8";
console.font = "Lat2-Terminus16";
console.keyMap = "es";
# Set your time zone.
time.timeZone = "Europe/Madrid";
# Allow nonfree packages
nixpkgs.config.allowUnfree = true;
# Package overriding
nixpkgs.config.packageOverrides = pkgs: {
steam = pkgs.steam.override {
extraPkgs = pkgs: [
pkgs.ibus
];
};
};
# List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [
(pkgs.callPackage ./materia-theme {})
(pkgs.callPackage ./materia-kde {})
wget vim tdesktop lutris wineWowPackages.staging minecraft vscode gnome.gedit
gnome.gnome-terminal firefox celluloid strawberry gnome.file-roller
papirus-icon-theme transmission-gtk
gnome.aisleriot gnome.gnome-mahjongg gnome.gnome-tweaks discord
git home-manager python39
p7zip unzip unrar gnome.gnome-calendar
steam-run systembus-notify
chromium ffmpegthumbnailer
obs-studio libfido2 pfetch
gtk-engine-murrine lm_sensors
parallel libreoffice-fresh
ffmpeg-full nodejs nodePackages.npm
python39Packages.pynvim neovim cmake python39Full gcc gnumake
gst_all_1.gstreamer gst_all_1.gst-vaapi gst_all_1.gst-libav
gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly gst_all_1.gst-plugins-good gst_all_1.gst-plugins-base
android-studio libsForQt5.qtstyleplugin-kvantum
mednafen mednaffe
myAspell mythes gimp steam
];
# Environment variables
environment.sessionVariables = {
GST_PLUGIN_PATH = "/nix/var/nix/profiles/system/sw/lib/gstreamer-1.0";
QT_STYLE_OVERRIDE = "kvantum";
};
# Font configuration
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
noto-fonts-cjk
noto-fonts-emoji
noto-fonts
recursive
];
# Java configuration
programs.java = {
enable = true;
package = pkgs.jdk11;
};
# Zsh shell
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestions.enable = true;
syntaxHighlighting.enable = true;
vteIntegration = true;
ohMyZsh = {
enable = true;
plugins = [ "git" "python" "man" "colored-man-pages" ];
theme = "frisk";
};
};
# Automatic garbage collection
nix.gc.automatic = true;
nix.gc.dates = "22:00";
# Automatic upgrades
system.autoUpgrade.enable = true;
# Enable apparmor
security.apparmor.enable = true;
services.dbus.apparmor = "enabled";
#Haveged daemon
services.haveged.enable = true;
# Flatpak support
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
# Steam dependencies
hardware.opengl = {
enable = true;
driSupport32Bit = true;
driSupport = true;
extraPackages = with pkgs; [
amdvlk
rocm-opencl-icd
rocm-opencl-runtime
];
extraPackages32 = with pkgs; [
driversi686Linux.amdvlk
];
};
# Enable CUPS to print documents.
services.printing = {
enable = true;
drivers = [ pkgs.hplip ];
};
# Enable sound.
sound.enable = true;
hardware.pulseaudio = {
enable = true;
daemon.config = {
lfe-crossover-freq = 20;
default-sample-format = "float32le";
default-sample-rate = 192000;
alternate-sample-rate = 48000;
default-sample-channels = 2;
default-channel-map = "front-left,front-right";
default-fragments = 2;
default-fragment-size-msec = 125;
resample-method = "speex-float-5";
remixing-produce-lfe = "no";
remixing-consume-lfe = "no";
high-priority = "yes";
nice-level = -11;
realtime-scheduling = "yes";
realtime-priority = 9;
rlimit-rtprio = 9;
daemonize = "no";
};
# NixOS allows either a lightweight build (default) or full build of PulseAudio to be installed.
# Only the full build has Bluetooth support, so it must be selected here.
extraModules = [ pkgs.pulseaudio-modules-bt ];
package = pkgs.pulseaudioFull;
support32Bit = true;
};
# Enable pipewire
services.pipewire.enable = true;
# Xserver configuration
services.xserver = {
enable = true;
# Xserver keyboard configuration
layout = "es";
xkbOptions = "eurosign:e";
# Use libinput for trackpad support
libinput.enable = true;
# Wacom tablet support
wacom.enable = true;
# AMDGPU drivers
videoDrivers = [ "amdgpu" ];
# Gnome3 desktop configuration
displayManager = {
gdm = {
wayland = false;
enable = true;
};
};
desktopManager.gnome = {
enable = true;
extraGSettingsOverrides = ''
[org.gnome.desktop.interface]
gtk-theme = "Materia-dark-compact"
icon-theme = "Papirus-Dark"
monospace-font-name = "Rec Mono Semicasual Regular 11"
[org.gnome.desktop.wm.preferences]
theme = "Materia-dark-compact"
button-layout = "appmenu:minimize,maximize,close"
[org.gnome.desktop.peripherals.mouse]
accel-profile = "flat"
[org.gnome.desktop.privacy]
disable-camera = true
disable-microphone = true
remember-recent-files = false
remove-old-temp-files = true
remove-old-trash-files = true
old-files-age = 3
[org.gnome.settings-daemon.plugins.power]
sleep-inactive-ac-timeout = 1800
sleep-inactive-battery-timeout = 900
'';
};
};
# Excluded gnome3 packages
environment.gnome.excludePackages =
[ pkgs.epiphany pkgs.gnome.gnome-music
pkgs.gnome.gnome-software pkgs.gnome.totem
];
# EarlyOOM
services.earlyoom = {
enable = true;
enableNotifications = true;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.link = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" "networkmanager" "video" ]; # Enable ‘sudo’ for the user.
shell = pkgs.zsh;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
}
I have this exact same error today.
20.09 seems to be okay though.
There’s an issue to track this now: nixos-install fails with getting attributes of path /nix/store/...: No such file or directory · Issue #126141 · NixOS/nixpkgs · GitHub