nix-infra/modules/nixos/graphical.nix

22 lines
474 B
Nix
Raw Normal View History

2024-03-24 18:02:45 +00:00
{ config, lib, ... }:
2024-03-24 18:02:29 +00:00
let
2024-03-24 18:02:24 +00:00
cfg = config.cherrykitten.graphical;
2024-03-24 18:02:29 +00:00
in
{
2024-03-24 18:03:01 +00:00
options.cherrykitten.graphical = lib.mkEnableOption (lib.mdDoc "graphical stuffs");
2024-03-24 18:03:01 +00:00
config = lib.mkIf cfg {
2024-03-24 18:02:23 +00:00
services.xserver = {
enable = true;
displayManager.sddm.enable = true;
desktopManager.plasma5.enable = true;
desktopManager.plasma5.bigscreen.enable = true;
libinput.enable = true;
2024-03-24 18:02:21 +00:00
2024-03-24 18:02:23 +00:00
xkb.layout = "de";
xkb.options = "caps:escape";
};
2024-03-24 18:02:21 +00:00
};
}