nix-infra/modules/nixos/graphical.nix
2024-03-24 19:03:01 +01:00

21 lines
474 B
Nix

{ config, lib, ... }:
let
cfg = config.cherrykitten.graphical;
in
{
options.cherrykitten.graphical = lib.mkEnableOption (lib.mdDoc "graphical stuffs");
config = lib.mkIf cfg {
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
desktopManager.plasma5.bigscreen.enable = true;
libinput.enable = true;
xkb.layout = "de";
xkb.options = "caps:escape";
};
};
}