20
submitted 5 months ago by Tomkoid@lemmy.ml to c/nix@programming.dev

I'm a beginner/intermediate in NixOS and my flake rebuild takes about 25 seconds to be finished. Most of the time is evaluating derivation for some reason and it's getting kinda frustrating having to wait when I want to add a package to my config. Has anyone the same problem or is it normal that it takes this long in Nix?

you are viewing a single comment's thread
view the rest of the comments
[-] uthredii@programming.dev 7 points 5 months ago

How often do you run nixos-rebuild --switch?

If you don't run it regularly then you will likely be waiting for a few different packages to get updates. To fix this you can configure auto upgrades:https://nixos.wiki/wiki/Automatic_system_upgrades

[-] Tomkoid@lemmy.ml 5 points 5 months ago

It varies by day. Some days, I rebuild the system flake five times, while other weeks I don't rebuild it at all. However, the time it takes to rebuild remains about the same.

this post was submitted on 19 Jun 2024
20 points (95.5% liked)

Nix / NixOS

1762 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS