4.flake-parts/modules
Robert Hensing 577772566b Memoize undeclared systems
The memoize function is not a pretty thing in terms of implementation,
but it's exactly what we need to solve this UX problem and performance
problem.

Without this, every distinct `withSystem` call will cause a re-evaluation
of the `perSystem` module, which is inefficient. Now, it's a one-time
13KB and length(system) attribute lookups: negligible compared to any
instantiations and such.

Nix doesn't offer memoization for functions yet, so this is the best we
can do.
2025-07-21 20:07:18 +02:00
..
apps.nix reference to Nix manual 2024-08-17 17:48:49 +05:30
checks.nix remove unused code 2023-05-29 13:52:03 -04:00
debug.nix remove unused code 2023-05-29 13:52:03 -04:00
devShells.nix docs: update to comments 2023-06-30 09:31:36 +02:00
flake.nix Add custom merge error for unknown flake output attrs 2025-01-06 06:54:42 +01:00
formatter.nix remove unused code 2023-05-29 13:52:03 -04:00
legacyPackages.nix remove unused code 2023-05-29 13:52:03 -04:00
moduleWithSystem.nix remove unused code 2023-05-29 13:52:03 -04:00
nixosConfigurations.nix remove unused code 2023-05-29 13:52:03 -04:00
nixosModules.nix Set proper type for flake.nixosModules 2024-09-12 01:09:17 -07:00
nixpkgs.nix perSystem: functionTo -> deferredModule 2022-05-25 18:18:50 +02:00
overlays.nix remove unused code 2023-05-29 13:52:03 -04:00
packages.nix remove unused code 2023-05-29 13:52:03 -04:00
perSystem.nix Memoize undeclared systems 2025-07-21 20:07:18 +02:00
transposition.nix transposition: Explain incomplete usage of transposition 2024-01-11 12:59:37 +01:00
withSystem.nix remove unused code 2023-05-29 13:52:03 -04:00