this post was submitted on 15 Jul 2023
420 points (97.1% liked)

Programmer Humor

32361 readers
459 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] demesisx 4 points 1 year ago* (last edited 1 year ago) (1 children)

rebuild_intelTower_withUpdate() { ./home/scripts/pullrelease.sh nix flake update sudo nixos-rebuild switch --flake .#intelTower --impure --show-trace nix build .#homeConfigurations.bismuth-edp.activationPackage --impure --show-trace activateHM }

[–] [email protected] 3 points 1 year ago (1 children)
[–] demesisx 5 points 1 year ago (1 children)

It pulls in flakes from flakes. So, unless I want to travel the whole dependency graph down all of the flakes and put them in my top-level flake, I have to use impure. 😕

[–] [email protected] 5 points 1 year ago (2 children)

I personally use a patch on my nix that allows to evaluate a thunk for the inputs, and have every input in a different file. https://github.com/flafydev/combined-manager

[–] demesisx 5 points 1 year ago

thanks so much for sharing. I'll give it a look.