add kde as gui option
This commit is contained in:
parent
8989d3349d
commit
44cc5430bb
3 changed files with 31 additions and 0 deletions
|
|
@ -42,6 +42,12 @@
|
|||
youthlic.gui.enabled = lib.mkForce "niri";
|
||||
};
|
||||
};
|
||||
kde = {
|
||||
inheritParentConfig = true;
|
||||
configuration = {
|
||||
youthlic.gui.enabled = lib.mkForce "kde";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.gnupg.agent = {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ in
|
|||
imports = [
|
||||
./niri.nix
|
||||
./cosmic.nix
|
||||
./kde.nix
|
||||
];
|
||||
options = {
|
||||
youthlic.gui = {
|
||||
|
|
@ -19,6 +20,7 @@ in
|
|||
lib.types.enum [
|
||||
"cosmic"
|
||||
"niri"
|
||||
"kde"
|
||||
]
|
||||
);
|
||||
default = null;
|
||||
|
|
|
|||
23
nixos/modules/gui/kde.nix
Normal file
23
nixos/modules/gui/kde.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.youthlic.gui;
|
||||
in
|
||||
{
|
||||
config = lib.mkIf (cfg.enabled == "kde") {
|
||||
services = {
|
||||
desktopManager.plasma6.enable = true;
|
||||
displayManager.sddm.enable = true;
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
layout = "cn";
|
||||
variant = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue