krebs / krops

Mirror of https://cgit.krebsco.de/krops/about/ (PRs / issues accepted, as can be seen by not having them disabled)
Do What The F*ck You Want To Public License
132 stars 18 forks source link

Error on a system using flakes, should use --no-flake #37

Open rapenne-s opened 1 year ago

rapenne-s commented 1 year ago

Hi!

I'm playing with krebs on a system that was configured using flakes, when deploying on it, I have this error, reproduced using nixos-rebuild

[root@nixos:/etc/nixos]# nixos-rebuild -I /var/src/ switch
error: flake 'git+file:///etc/nixos' does not provide attribute 'packages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild', 'legacyPackages.x86_64-linux.nixosConfigurations."nixos".config.system.build.nixos-rebuild' or 'nixosConfigurations."nixos".config.system.build.nixos-rebuild'

using --no-flake parameter, everything is going fine

nixos-rebuild --no-flake -I /var/src/ switch

I suppose krebs should use this parameter for deploying.