Nix configuration shared across euler repositories.
- A
lib.mkFlake
function usesflake-parts.lib.mkFlake
, in addition to providing:- Shared
nixpkgs
input - Shared
nixpkgs-latest
input - Automatic setting of
systems
(using nix-systems) - Automatic importing of the common flakeModule.
- Automatic services (
redis
,mysql
andredis-cluster
) setup using https://github.com/juspay/services-flake.
- Shared
- The common
flakeModule
provides:- Common Haskell configuration
- GHC 9.2.8 package set
- Avoid global tool caches (
no-global-cache.nix
)
- Common Haskell configuration
- Use
nix flake lock --update-input <input>
to update a specific input (if onNix >= 2.20
usenix flake update <input>
)