27 lines
1.3 KiB
Nix
27 lines
1.3 KiB
Nix
{ inputs, self, ... }: {
|
|
imports = [ (inputs.helpers.mkMirroredModulesFlakeModule "graphicsOptions" ({ lib, ... }: {
|
|
options = {
|
|
components = {
|
|
windowManagers = lib.mkOption {
|
|
type = inputs.helpers.mkOptionalListOfType (inputs.helpers.mkEnumFromDirContents "${self}/modules/components/window-managers");
|
|
description = "This option defines the window manager(s) that should be installed, enabling any config associated with it in the process. It can be either a list or just one value.";
|
|
default = [];
|
|
};
|
|
|
|
shells = lib.mkOption {
|
|
type = inputs.helpers.mkOptionalListOfType (inputs.helpers.mkEnumFromDirContents "${self}/modules/components/shells");
|
|
description = "This option defines the graphical shell(s) that should be installed (e.g. Noctalia, DMS), enabling any config associated with it in the process. It can be either a list or just one value.";
|
|
default = [];
|
|
};
|
|
};
|
|
};
|
|
})) ];
|
|
|
|
flake.nixosModules.graphicsOptions = { lib, ... }: {
|
|
options.components.displayManager = lib.mkOption {
|
|
type = inputs.helpers.mkEnumFromDirContents "${self}/modules/components/display-managers";
|
|
description = "This option defines the bootloader that should be used, enabling any config associated with it in the process.";
|
|
default = "lightdm";
|
|
};
|
|
};
|
|
} |