!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

611 Members
About system administration for running NixOS systems in production. Declaratively manage your operations. | Room recommendations: #networking:nixos.org166 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
28 Nov 2024
@elvishjerricco:matrix.orgElvishJerricco * You can avoid re-evaluating by setting pkgs in the nixosSystem call, I believe. Or by setting the nixpkgs.pkgs nixos option. Either of these will break anything in the nixpkgs.* nixos options (though I think that module yells at you about that now so it'll be obvious) 13:40:16
@elvishjerricco:matrix.orgElvishJerriccothat said, I'm not even sure nixpkgs eval is the slowest part tbh. NixOS module evaluation might be worse, and you're not going to get that to be shared13:41:15
@o-santi:matrix.orgLeonardo Santiago
In reply to @elvishjerricco:matrix.org
that said, I'm not even sure nixpkgs eval is the slowest part tbh. NixOS module evaluation might be worse, and you're not going to get that to be shared
I imagined it, which is sad. the design is pretty modular, as in, it should be able to evaluate the modules separately and then just re-use them for all configs. I was wondering if there was a way to restructure my code to do it like that.
13:53:08
@elvishjerricco:matrix.orgElvishJerriccoI mean that's not really possible13:53:36
@o-santi:matrix.orgLeonardo Santiago but I don't know enough about the internals of nix flake check for that 13:53:37
@elvishjerricco:matrix.orgElvishJerriccoany module can affect any other module arbitrarily13:53:43
@elvishjerricco:matrix.orgElvishJerriccoso if two configs aren't literally exactly identical (I mean exactly) then there's basically zero potential for sharing13:54:20
@o-santi:matrix.orgLeonardo Santiagothat is fair, I didn't think about that 13:54:23

Show newer messages


Back to Room ListRoom Version: 10