nixos-config/modules/workspace/kde/default.nix

133 lines
4.3 KiB
Nix
Raw Normal View History

2020-02-17 17:00:59 +04:00
{ pkgs, lib, config, ... }:
with import ../../../support.nix { inherit lib config; }; {
xdg.portal.enable = true;
2020-04-28 21:48:57 +04:00
services.dbus.packages = [
pkgs.firefox
pkgs.systemd
2020-06-21 13:17:20 +04:00
pkgs.papirus-icon-theme
2020-06-21 20:23:14 +04:00
];
services.udev.packages = [
pkgs.libmtp
pkgs.media-player-info
];
2020-02-17 17:00:59 +04:00
environment.sessionVariables = {
DESKTOP_SESSION = "kde";
QT_XFT = "true";
QT_SELECT = "5";
KDE_SESSION_VERSION = "5";
QT_SCALE_FACTOR = "1";
QT_AUTO_SCREEN_SCALE_FACTOR = "0";
DE = "kde";
2020-04-28 21:48:57 +04:00
QT_QPA_PLATFORMTHEME = "kde";
2020-06-21 20:23:14 +04:00
KDEDIRS = "/run/current-system/sw:/run/current-system/sw/share/kservices5:/run/current-system/sw/share/kservicetypes5:/run/current-system/sw/share/kxmlgui5";
2020-02-17 17:00:59 +04:00
};
home-manager.users.balsoft.xdg.configFile."kdeglobals".text = genIni {
"Colors:Button" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
2020-06-13 00:12:36 +04:00
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
2020-02-17 17:00:59 +04:00
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
ForegroundVisited = thmDec.gray;
};
"Colors:Complementary" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
2020-06-13 00:12:36 +04:00
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
2020-02-17 17:00:59 +04:00
ForegroundActive = thmDec.orange;
2020-06-13 00:12:36 +04:00
ForegroundInactive = thmDec.dark;
2020-02-17 17:00:59 +04:00
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.yellow;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
2020-06-13 00:12:36 +04:00
ForegroundVisited = thmDec.alt;
2020-02-17 17:00:59 +04:00
};
"Colors:Selection" = {
2020-06-13 00:12:36 +04:00
BackgroundAlternate = thmDec.alt;
BackgroundNormal = thmDec.alt;
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
2020-02-17 17:00:59 +04:00
ForegroundActive = thmDec.fg;
ForegroundInactive = thmDec.fg;
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
ForegroundVisited = thmDec.alt;
};
"Colors:Tooltip" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
2020-06-13 00:12:36 +04:00
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
2020-02-17 17:00:59 +04:00
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
ForegroundVisited = thmDec.gray;
};
"Colors:View" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
2020-06-13 00:12:36 +04:00
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
2020-02-17 17:00:59 +04:00
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
ForegroundVisited = thmDec.gray;
};
"Colors:Window" = {
BackgroundAlternate = thmDec.dark;
BackgroundNormal = thmDec.bg;
2020-06-13 00:12:36 +04:00
DecorationFocus = thmDec.alt;
DecorationHover = thmDec.alt;
ForegroundActive = thmDec.alt;
ForegroundInactive = thmDec.dark;
2020-02-17 17:00:59 +04:00
ForegroundLink = thmDec.blue;
ForegroundNegative = thmDec.red;
ForegroundNeutral = thmDec.orange;
ForegroundNormal = thmDec.fg;
ForegroundPositive = thmDec.green;
ForegroundVisited = thmDec.gray;
};
General = {
ColorScheme = "Generated";
Name = "Generated";
2020-06-12 18:34:18 +04:00
fixed = "IBM Plex Mono,11,-1,5,50,0,0,0,0,0";
font = "IBM Plex,11,-1,5,50,0,0,0,0,0";
menuFont = "IBM Plex,11,-1,5,50,0,0,0,0,0";
2020-02-17 17:00:59 +04:00
shadeSortColumn = true;
2020-06-12 18:34:18 +04:00
smallestReadableFont = "IBM Plex,8,-1,5,57,0,0,0,0,0,Medium";
toolBarFont = "IBM Plex,11,-1,5,50,0,0,0,0,0";
2020-02-17 17:00:59 +04:00
};
KDE = {
DoubleClickInterval = 400;
ShowDeleteCommand = true;
SingleClick = false;
StartDragDist = 4;
StartDragTime = 500;
WheelScrollLines = 3;
contrast = 4;
widgetStyle = "Breeze";
};
2020-06-21 13:17:20 +04:00
Icons = { Theme = "Papirus-Dark"; };
2020-02-17 17:00:59 +04:00
};
}