nixos/specialisation: add isSpecialisation option to know if we're a specialisation

This commit is contained in:
K900 2024-09-08 16:05:47 +03:00
parent 00c3eae870
commit 7771e0b943
2 changed files with 7 additions and 0 deletions

View File

@ -5,4 +5,5 @@ with lib;
{
boot.loader.grub.device = mkOverride 0 "nodev";
specialisation = mkOverride 0 {};
isSpecialisation = mkOverride 0 true;
}

View File

@ -23,6 +23,12 @@ let
in
{
options = {
isSpecialisation = mkOption {
type = lib.types.bool;
internal = true;
default = false;
description = "Whether this system is a specialisation of another.";
};
specialisation = mkOption {
default = { };