mirror of
https://codeberg.org/mtxyz/nixconf.git
synced 2024-11-10 10:32:15 +00:00
21 lines
386 B
Nix
21 lines
386 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
options.mtxyz.graphical = with lib; {
|
|
desktop = mkOption {
|
|
type = with types; nullOr (enum [ "kde" ]);
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.mtxyz.graphical.desktop == "kde") {
|
|
services = {
|
|
xserver.displayManager.sddm.enable = true;
|
|
desktopManager.plasma6.enable = true;
|
|
};
|
|
|
|
programs.kdeconnect.enable = true;
|
|
};
|
|
}
|