Do you have a single #nixos #flake for multiple devices using different #nixosconfigurations in which for each device you have a specified /persist data location as part of an #impermanence setup? I am looking for examples, tips and foot-gun alerts.... cheers.

nix is known for giving strange and obtuse errors , but "error: interrupted by the user" is probably the worst one .

error: interrupted by the user Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '/etc/nixos#nixosConfigurations."library".config.system.build.toplevel' --no-link' returned non-zero exit status 1.

like ??? what even is this ???


#nixosConfigurations
A simple way to narrow down outdated #nixpkgs options I might be using for my config for a specific module and also get better with #nix
nix eval .#nixosConfigurations.thinkpadTest-vm.config.disko.devices >repl.txt
and test it on repl
not sure how synced they re with #ghc updates though
pfa
@andi242 @zstg yes. You can diff on the derivation level without building with `nix store diff-closures --derivation /run/current-system .#nixosConfigurations.mymachine.config.system.build.toplevel`
I'm also curious do you recommend something else than home manager, multiple config files, flakes and maybe a git /w control scripts? #nix #nixos #nixosconfigurations  
If I have a derivation in my #nixosConfigurations flake for/using a certain package (e.g. rns, lxmf) and it uses python3.packages and follows nixpkgs , how do I protect the derivation against breakage if my #nixpkgs get a new lock.nix i.e. I move to newer updated packages for the whole computer ? #nixos #nix #python3
@YvanDaSilva
you can commit the update and then run
nix store diff-closures --derivation git+file://<path to your config flake>?rev=<full commit hash before update>#nixosConfigurations.<hostname>.config.system.build.toplevel git+file://<path to your config flake>?rev=<full commit hash after update>#nixosConfigurations.<hostname>.config.system.build.toplevel

Nix and remote building a single system package

https://beyermatthias.de/nix-and-remote-building-a-single-system-package

Nix and remote building a single system package

Today I had a rather unusual issue with my nixos setup. I tried to rebuild the system for one of my hosts, lets call it "H". The system r...

musicmatzes blog
nix build --builders 'ssh-ng://erin@dev x86_64-linux' .#nixosConfigurations.iso.config.system.build.isoImage

Налаштовую новий сервер, відеокарти нема, тому треба headless install. Дуже зручно на NixOS згенерувати ISO з усіма моїми налаштуваннями + SSH публічними ключем.

`nix build .#nixosConfigurations.xeon.config.system.build.isoImage`