!coeAONBrWyDJnYMbMi:nixos.org

NixOS System Operations

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

Load older messages


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
@elvishjerricco:matrix.orgElvishJerricco Leonardo Santiago: I'd give it a try to reduce the nixpkgs instantiations by setting them all to the same pkgs and see how much that helps 13:55:21
@o-santi:matrix.orgLeonardo SantiagoI'll try doing that13:56:24
@o-santi:matrix.orgLeonardo Santiago I'm also experimenting with nix-eval-jobs --flake .#nixosConfigurations but it doesn't seem to do what I want? it either returns instantaneously with no output or enters an infinite loop with --force-recurse 13:57:23
@o-santi:matrix.orgLeonardo Santiagonot sure I'm using it correctly13:57:30
@elvishjerricco:matrix.orgElvishJerricco Leonardo Santiago: You probably need to specify the exact toplevel attributes, not just nixosConfigurations 15:05:26
@elvishjerricco:matrix.orgElvishJerricco i.e. I'd create an output attribute like toplevels = mapAttrs (_: cfg: cfg.system.build.toplevel) self.nixosConfigurations; and eval that 15:06:34
@o-santi:matrix.orgLeonardo Santiagowhat does that mean? I'd like for it to evaluate each nixosConfiguration under that in it's own thread. how would I do it? spell out each attr I'd like it to eval in there?15:06:35
@adam:robins.wtfadamcstephens it means you can't eval nixosConfigurations.name . Try and do so with nix eval .#nixosConfigurations.name and you'll see it won't work 16:01:40
@adam:robins.wtfadamcstephens

but you can evaluate the system toplevel.

❯ nix eval .#nixosConfigurations.nest1.config.system.build.toplevel
«derivation /nix/store/6yc0q5y7wyladjg0y8wlkxla88rli1lb-nixos-system-nest1-24.11.20241116.057f63b.drv»
16:02:02
@adam:robins.wtfadamcstephenselvish was suggesting you create another attribute that maps your nixos configs into that you can then pass to nix-eval-jobs16:03:17
@adam:robins.wtfadamcstephensanyone have a tool they like to use for inspecting tls certificates locally or remotely, that isn't openssl (i know how to use it, i don't want to )16:21:48
@hexa:lossy.networkhexano16:25:43
@numinit:matrix.orgMorganlocally, keystore-explorer isn't awful16:36:18
@numinit:matrix.orgMorganthere are a lot of not so good options in general though 16:36:46
@numinit:matrix.orgMorganhttps://lapo.it/asn1js/16:39:47
@numinit:matrix.orgMorganisn't bad, provides interactive hexdumps16:39:57
@adam:robins.wtfadamcstephenssorry, i should have clarified i want a CLI tool16:45:27
@numinit:matrix.orgMorganah, yeah, neither of those are that. 😩17:31:38
@numinit:matrix.orgMorgan give https://search.nixos.org/packages?channel=24.05&show=certigo&from=0&size=50&sort=relevance&type=packages&query=Certigo a try 17:33:48
@numinit:matrix.orgMorganI think that one can output json too17:34:42
@adam:robins.wtfadamcstephensima_96a97f1.jpeg
Download ima_96a97f1.jpeg
18:34:51
@adam:robins.wtfadamcstephens Just got an email from hetzner on their US cloud offering. More expensive and significantly less traffic  18:34:52

Show newer messages


Back to Room ListRoom Version: 10