nixos/specialisation: add isSpecialisation option to know if we're a specialisation
This commit is contained in:
parent
00c3eae870
commit
7771e0b943
@ -5,4 +5,5 @@ with lib;
|
||||
{
|
||||
boot.loader.grub.device = mkOverride 0 "nodev";
|
||||
specialisation = mkOverride 0 {};
|
||||
isSpecialisation = mkOverride 0 true;
|
||||
}
|
||||
|
@ -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 = { };
|
||||
|
Loading…
Reference in New Issue
Block a user