11.stylix/stylix/release.nix
Flameopathic fc5acae54b
stylix: add version checks (#924)
Basic release version checks for NixOS, Home Manager, nix-darwin, and Stylix.

Fixes #379

Co-authored-by: Daniel Thwaites <danth@danth.me>
2025-03-10 15:36:48 +00:00

23 lines
690 B
Nix

{ lib, ... }:
{
options.stylix = {
release = lib.mkOption {
description = "The version of NixOS that Stylix is built to support";
default = "25.05";
internal = true;
readOnly = true;
};
enableReleaseChecks = lib.mkOption {
description = ''
Whether to check that the Stylix release matches the releases of
NixOS, Home Manager, and nix-darwin. Checks are only performed if the
component in question is used.
If this option is enabled and a mismatch is detected, a warning will be
printed when the user configuration is being built.
'';
type = lib.types.bool;
default = true;
};
};
}