blob: 9490b71caea43ee7f817a0e138f9eac73d2d6254 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.nixfiles.modules.kde;
in
{
options.nixfiles.modules.kde.enable = mkEnableOption "KDE Plasma";
config = mkIf cfg.enable {
nixfiles.modules = {
common.xdg.defaultApplications."org.kde.dolphin" = [ "inode/directory" ];
gnupg.pinentry = pkgs.pinentry-qt;
sound.enable = true;
};
hm = {
# NOTE This will fail the home-manager service upon startup while a Plasma
# session is not initialised. Something about dbus not being able to
# communicate with presumably KDE configuration daemon.
stylix.targets.kde.enable = true;
programs.firefox.profiles.default.settings = {
"widget.use-xdg-desktop-portal.file-picker" = 1;
"widget.use-xdg-desktop-portal.mime-handler" = 1;
};
gtk.theme = {
package = mkForce pkgs.breeze-gtk;
name = mkForce "Breeze";
};
xdg.configFile = {
"fontconfig/conf.d/10-hm-fonts.conf".force = mkForce true;
"mimeapps.list".force = mkForce true;
"kcminputrc".text = generators.toINI { } {
Keyboard = with config.services.xserver; {
RepeatDelay = autoRepeatDelay;
RepeatRate = autoRepeatInterval;
};
};
"baloofilerc".text = generators.toINI { } { "Basic Settings"."Indexing-Enabled" = false; };
};
};
services = {
desktopManager.plasma6.enable = true;
displayManager.sddm = {
enable = true;
wayland = {
enable = false;
compositor = "kwin";
};
};
};
environment = {
plasma6.excludePackages = with pkgs.kdePackages; [
elisa
gwenview
kate
khelpcenter
print-manager
];
systemPackages = with pkgs.kdePackages; [
plasma-disks
];
};
};
}
|