this post was submitted on 15 Jul 2023
428 points (97.6% liked)

Programmer Humor

32549 readers
456 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@lemmy.world 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 }

[–] neoney@lemmy.neoney.dev 3 points 1 year ago (1 children)
[–] demesisx@lemmy.world 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. 😕

[–] neoney@lemmy.neoney.dev 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@lemmy.world 5 points 1 year ago

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