broke out common logic
This commit is contained in:
@@ -60,23 +60,17 @@
|
||||
description = "Whether to enable docker stuff";
|
||||
};
|
||||
|
||||
options.graphical = {
|
||||
discord = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
options.graphical =
|
||||
let
|
||||
boolOption = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
in
|
||||
{
|
||||
discord = boolOption;
|
||||
ghostty = boolOption;
|
||||
steam = boolOption;
|
||||
vscode = boolOption;
|
||||
};
|
||||
ghostty = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
steam = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Whether this system has Steam installed";
|
||||
};
|
||||
vscode = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user