2025-01-02 23:28:12 +01:00
|
|
|
# KDE desktop environment.
|
2024-02-04 15:02:24 +01:00
|
|
|
|
2025-01-02 23:28:12 +01:00
|
|
|
# TODO: Declarative KDE setting adjustments.
|
|
|
|
# - Plasma > Breeze Dark
|
|
|
|
# - Global theme > Breeze Dark
|
|
|
|
# - Touchpad > Invert scroll direction (natural scrolling)
|
|
|
|
# - Touchpad > Tap to click > unchecked
|
|
|
|
# - File search > Also index file content
|
|
|
|
# - On AC power > Button events handling > When laptop lid is closed > Do nothing
|
|
|
|
# - On AC power > Suspend session -> unchecked
|
2024-02-04 15:02:24 +01:00
|
|
|
|
2025-01-02 23:28:12 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2024-02-04 15:02:24 +01:00
|
|
|
imports = [
|
|
|
|
./audio.nix
|
|
|
|
];
|
|
|
|
|
2025-01-02 23:28:12 +01:00
|
|
|
# https://wiki.nixos.org/wiki/KDE
|
|
|
|
|
|
|
|
# Optional.
|
2024-02-04 15:02:24 +01:00
|
|
|
# Enable the X11 windowing system.
|
2025-01-02 23:28:12 +01:00
|
|
|
#services.xserver.enable = true;
|
|
|
|
# Exclude xterm.
|
|
|
|
#services.xserver.excludePackages = [ pkgs.xterm ];
|
2024-02-04 15:02:24 +01:00
|
|
|
|
|
|
|
# Enable the KDE desktop environment
|
2025-01-02 23:28:12 +01:00
|
|
|
services.displayManager.sddm = {
|
|
|
|
enable = true;
|
|
|
|
#theme = "sddm-chili-theme";
|
|
|
|
wayland.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
#services.xserver.displayManager.gdm.enable = true;
|
|
|
|
services.desktopManager.plasma6.enable = true;
|
2024-02-04 15:02:24 +01:00
|
|
|
|
|
|
|
# Don't install all programs of the KDE desktop.
|
2025-01-02 23:28:12 +01:00
|
|
|
# https://wiki.nixos.org/wiki/KDE#Plasma_6_2
|
|
|
|
#
|
|
|
|
# Optional packages: https://github.com/NixOS/nixpkgs/blob/88195a94f390381c6afcdaa933c2f6ff93959cb4/nixos/modules/services/desktop-managers/plasma6.nix#L157-L180
|
|
|
|
#
|
|
|
|
# environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
2024-02-04 15:02:24 +01:00
|
|
|
# konsole
|
|
|
|
# ];
|
|
|
|
|
|
|
|
# GNOME desktop integration.
|
2025-01-02 23:28:12 +01:00
|
|
|
# https://wiki.nixos.org/wiki/KDE#GNOME_desktop_integration
|
|
|
|
#
|
2024-02-04 15:02:24 +01:00
|
|
|
# Using the following example configuration, QT applications will have a look similar to the GNOME desktop, using a dark theme
|
2025-01-02 23:28:12 +01:00
|
|
|
# qt = {
|
|
|
|
# enable = true;
|
|
|
|
# platformTheme = "gnome";
|
|
|
|
# style = "adwaita-dark";
|
|
|
|
# };
|
2024-02-04 15:02:24 +01:00
|
|
|
|
|
|
|
# Configure keymap in X11.
|
2024-08-13 14:46:55 +02:00
|
|
|
services.xserver.xkb = {
|
2024-02-04 15:02:24 +01:00
|
|
|
layout = "de";
|
2024-08-13 14:46:55 +02:00
|
|
|
variant = "nodeadkeys";
|
2024-02-04 15:02:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Enable Bluetooth support
|
|
|
|
# https://nixos.wiki/wiki/Bluetooth
|
2025-01-02 23:28:12 +01:00
|
|
|
#hardware.bluetooth.enable = true;
|
2024-02-04 15:02:24 +01:00
|
|
|
}
|