-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
21.05 nixos-install
process does not work with environment.systemPackages
#125860
Comments
Update: I've narrowed it down to the following line of
Without this one line everything builds fine, with it |
nixos-install
process does not work in 21.05 minimal installernixos-install
process does not work with environment.systemPackages
I am not 100% sure but before running nixos-install try to refresh channel |
Unfortunately that doesn't make a difference for me. I ran |
Oddly enough, |
Home-manager breaks when installed in any way other than with its own dedicated channel. I just ran into this problem: nix-community/home-manager#1267 Could it be related? |
Interesting, I'm not sure if that's related but it is at least another data point to suggest that nixos-up should install home-manager some other way. I'm a bit concerned that home-manger is pushing so many people towards the channel installation. My understanding is that channels are known to be suboptimal and are on the way out. I wish it wasn't the recommended home-manager installation method. |
Possible dup of #126141. |
Possibly-related Discourse link: https://discourse.nixos.org/t/21-05-not-installing/13547 |
I marked this as stale due to inactivity. → More info |
nix has been updated for a long time |
Describe the bug
https://github.com/samuela/nixos-up is a simple, completely automated install process for NixOS. The process works wonderfully with the 20.09 installer ISO, but something in the 21.05 ISO has broken it as reported here (samuela/nixos-up#9). I've also been able to reproduce the issue.
I've consulted the NixOS manual, and the installation instructions do not seem to have changed between versions, which suggests to me that this is a regression.
To Reproduce
Either via nixos-up:
sudo nix-shell https://github.com/samuela/nixos-up/archive/main.tar.gz
.nixos-install
step fails.Alternatively,
parted /dev/XXX -- mklabel gpt
parted /dev/XXX -- mkpart ESP fat32 1MiB 512MiB
parted /dev/XXX -- set 1 esp on
parted /dev/XXX -- mkpart primary 512MiB 100%
mkfs.fat -F 32 -n boot /dev/XXX1
mkfs.ext4 -L nixos /dev/XXX2
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
nixos-generate-config --root /mnt
nixos-install --no-root-passwd
Expected behavior
The install to be successful.
Screenshots
https://user-images.githubusercontent.com/10327/120901852-14673e00-c5f2-11eb-845f-2ad18ec268ef.png
Additional context
Add any other context about the problem here.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: