21 lines
284 B
Nix
21 lines
284 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkOption;
|
|
inherit (lib.types) str;
|
|
|
|
cfg = config.host.version;
|
|
in
|
|
{
|
|
options.host.version = mkOption {
|
|
type = str;
|
|
default = "25.05";
|
|
description = "System version.";
|
|
};
|
|
|
|
config.system.stateVersion = cfg;
|
|
}
|