Skip to content
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

nixos-install error #984

Open
rick73erc opened this issue Mar 3, 2025 · 6 comments
Open

nixos-install error #984

rick73erc opened this issue Mar 3, 2025 · 6 comments

Comments

@rick73erc
Copy link

❯ sudo nixos-install
copying channel...
building the configuration in /mnt/etc/nixos/configuration.nix...
error: experimental Nix feature 'flakes' is disabled; add '--extra-experimental-features flakes' to enable it

@Impqxr
Copy link

Impqxr commented Mar 3, 2025

Do you use flakes in your configuration? If so, can you show it to me?

@rick73erc
Copy link
Author

I have followed the Quickstart guide step by step
However I can find the flake from step1
nix flake init --template github:nix-community/disko-templates#single-disk-ext4

@Impqxr
Copy link

Impqxr commented Mar 3, 2025

I have followed the Quickstart guide step by step However I can find the flake from step1 nix flake init --template github:nix-community/disko-templates#single-disk-ext4

Maybe you have flake.nix in /mnt/etc/nixos
Try to run sudo nixos-install --extra-experimental-features flakes

@rick73erc
Copy link
Author

It just returns
sudo nixos-install --extra-experimental-features flakes
/run/current-system/sw/bin/nixos-install: unknown option `--extra-experimental-features'

I will again later off to bed now. Thanks for your help.

@Impqxr
Copy link

Impqxr commented Mar 3, 2025

It just returns sudo nixos-install --extra-experimental-features flakes /run/current-system/sw/bin/nixos-install: unknown option `--extra-experimental-features'

I will again later off to bed now. Thanks for your help.

Check what's inside /mnt/etc/nixos later.

@rick73erc
Copy link
Author

would not work with nixos-unstable channel switch back to nixos-24.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants