decided to try out the new debian 12, why i didnt spin up a vm ill never know but i decided to wipe my nix install to do it. i realized i had made a mistake and went to re-install nix, when it tried to install the enlightenment DE however, it failed saying that the python-efl package was broken and booted me out. heres the log:
ERROR: Installation failed: "nixos-install failed"
2023-06-30 - 15:15:12 [6]: .. - message: "nixos-install failed"
2023-06-30 - 15:15:12 [6]: .. - details: copying channel...
building the configuration in /tmp/calamares-root-x2yj5zw7/etc/nixos/configuration.nix...
error: Package ‘python3.10-python-efl-1.26.0’ in /nix/store/4lv6nn8yfp1ddvzw4gpbcrb1k00j26br-nixos-23.05.1375.9790f3242da/nixos/pkgs/development/python-modules/python-efl/default.nix:46 is marked as broken, refusing to evaluate.
a) To temporarily allow broken packages, you can use an environment variable
for a single invocation of the nix tools.
$ export NIXPKGS_ALLOW_BROKEN=1
Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
(Flake) command, `--impure` must be passed in order to read this
environment variable.
b) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
2023-06-30 - 15:15:12 [6]: void Calamares::ViewManager::onInstallationFailed(const QString&, const QString&)
Calamares will quit when the dialog closes.
2023-06-30 - 15:15:12 [6]: QML Component (default slideshow) deactivated
2023-06-30 - 15:15:12 [6]: void Config::doNotify(bool, bool)
Sending notification of completion: failed
I’m also hitting this issue. I’m just using the graphical installer so I don’t know if it’s using flakes or not. I tried running Calamares from the command line with NIXPKGS_ALLOW_BROKEN=1 from the command line and it doesn’t seem to have helped
Technically, if you are using flake, your configuration may be anywhere
That means you could move /etc/nixos to anyware (ie. $HOME/wherever-you-leave-your-personal-code/mine-is/Code/nixos) add it to git and install/reinstall with
# do this from you source code directory
sudo nixos-rebuild switch --flake .#$(hostname)
This will use the master branch of Nixpkgs, which has all the changes that come before nixos-unstable (it’s more unstable than Unstable itself) and isn’t cached by Hydra (you will end up building a lot of packages on your machine).
To use the nixos-unstable branch you have to specify it in the input’s URL: