Basic release version checks for NixOS, Home Manager, nix-darwin, and Stylix. Fixes #379 Co-authored-by: Daniel Thwaites <danth@danth.me>
23 lines
690 B
Nix
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;
|
|
};
|
|
};
|
|
}
|