Consolidate displayManager module options under the new display module options, and include the choices as enums
This commit is contained in:
parent
0f030fd0ca
commit
fc2359c215
|
|
@ -5,10 +5,10 @@
|
|||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.displayManager;
|
||||
cfg = config.modules.display;
|
||||
in
|
||||
{
|
||||
config = mkIf (cfg.displayManager == "gdm") {
|
||||
config = mkIf (cfg.manager == "gdm") {
|
||||
services.displayManager.gdm = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@
|
|||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.displayManager;
|
||||
cfg = config.modules.display;
|
||||
in
|
||||
{
|
||||
config = mkIf (cfg.displayManager == "sddm") {
|
||||
config = mkIf (cfg.manager == "sddm") {
|
||||
services.displayManager.sddm = {
|
||||
enable = true;
|
||||
wayland.enable = true;
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
imports = [
|
||||
./discord.nix
|
||||
./display.nix
|
||||
./displayManager.nix
|
||||
./gnomeBoxes.nix
|
||||
./gpg.nix
|
||||
./hyprland.nix
|
||||
|
|
|
|||
|
|
@ -5,6 +5,17 @@
|
|||
with lib;
|
||||
{
|
||||
options.modules.display = {
|
||||
manager = mkOption {
|
||||
type = types.enum [
|
||||
"gdm"
|
||||
"sddm"
|
||||
];
|
||||
default = "sddm";
|
||||
description = ''
|
||||
The display manager to use.
|
||||
'';
|
||||
};
|
||||
|
||||
scale = mkOption {
|
||||
type = types.int;
|
||||
default = 1;
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
options.modules.displayManager = {
|
||||
displayManager = mkOption {
|
||||
type = types.enum [
|
||||
"gdm"
|
||||
"sddm"
|
||||
];
|
||||
default = "sddm";
|
||||
description = ''
|
||||
The display manager to use.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
];
|
||||
};
|
||||
modules.plasma.enable = false;
|
||||
modules.displayManager.displayManager = "gdm";
|
||||
modules.display.manager = "gdm";
|
||||
|
||||
modules.localsend.enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue