NixOS/system/modules/kde.nix

45 lines
982 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-06-12 09:54:11 +07:00
let
cfg = config.profile.kde;
in
{
config = lib.mkIf cfg.enable {
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
2024-07-12 10:00:28 +07:00
services.displayManager = {
2024-06-12 09:54:11 +07:00
sddm.enable = true;
};
2024-07-12 10:00:28 +07:00
services.greetd.enable = lib.mkForce false;
2024-06-12 09:54:11 +07:00
environment.systemPackages = with pkgs; [
catppuccin-kde
catppuccin-cursors
catppuccin-sddm-corners
plasma-browser-integration
kwin-dynamic-workspaces
libsForQt5.bismuth
haruna
];
environment.etc."chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.plasma-browser-integration}/etc/chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json";
2024-06-12 09:54:11 +07:00
# Configure keymap in X11
services.xserver = {
2024-07-12 10:00:28 +07:00
xkb = {
layout = "us";
variant = "";
};
2024-06-12 09:54:11 +07:00
};
programs.kdeconnect.enable = true;
};
}