18
submitted 2 weeks 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 6 points 2 weeks 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 3 points 2 weeks 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
18 points (95.0% liked)

Nix / NixOS

1465 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS