45 lines
982 B
Nix
45 lines
982 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
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;
|
|
services.displayManager = {
|
|
sddm.enable = true;
|
|
};
|
|
|
|
services.greetd.enable = lib.mkForce false;
|
|
|
|
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";
|
|
|
|
# Configure keymap in X11
|
|
services.xserver = {
|
|
xkb = {
|
|
layout = "us";
|
|
variant = "";
|
|
};
|
|
};
|
|
|
|
programs.kdeconnect.enable = true;
|
|
};
|
|
}
|