nixos-config/configurations/host/materusPC/kde.nix

74 lines
2.2 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-10-08 11:42:08 +02:00
let
2024-03-29 14:51:39 +01:00
westonSddm = let xcfg = config.services.xserver; in pkgs.writeText "weston.ini"
2023-10-08 11:42:08 +02:00
''
[core]
2024-03-29 14:51:39 +01:00
xwayland=false
2023-10-08 11:42:08 +02:00
shell=fullscreen-shell.so
[keyboard]
2024-03-29 14:51:39 +01:00
keymap_model = ${builtins.toString xcfg.xkb.model};
keymap_layout = ${builtins.toString xcfg.xkb.layout};
keymap_variant = ${builtins.toString xcfg.xkb.variant};
keymap_options = ${builtins.toString xcfg.xkb.options};
[libinput]
enable-tap = ${builtins.toString xcfg.libinput.mouse.tapping};
left-handed = ${builtins.toString xcfg.libinput.mouse.leftHanded};
2023-10-08 11:42:08 +02:00
[output]
name=DP-3
mode=1920x1080@240
[output]
name=DP-2
mode=off
[output]
name=HDMI-A-3
mode=off
2024-03-29 14:51:39 +01:00
'';
2023-10-08 11:42:08 +02:00
in
{
2024-03-04 12:33:48 +01:00
services.xserver.displayManager.defaultSession = "plasma";
2023-10-08 11:42:08 +02:00
services.xserver.displayManager.sddm.enable = true;
2024-03-29 14:51:39 +01:00
services.xserver.displayManager.sddm.wayland.enable = true;
services.xserver.displayManager.sddm.wayland.compositor = lib.mkForce "weston";
services.xserver.displayManager.sddm.wayland.compositorCommand = lib.concatStringsSep " " [
"${lib.getExe pkgs.weston}"
"--shell=kiosk"
"-c ${westonSddm}"
];
2023-10-08 11:42:08 +02:00
services.xserver.displayManager.sddm.settings = {
General = {
2024-03-11 16:19:31 +01:00
InputMethod = "";
2023-10-08 11:42:08 +02:00
};
Theme = {
CursorTheme = "breeze_cursors";
CursorSize = "24";
};
};
services.desktopManager.plasma6.enable = true;
services.desktopManager.plasma6.enableQt5Integration = true;
2024-03-17 10:25:09 +01:00
programs.gnupg.agent.pinentryPackage = lib.mkForce pkgs.pinentry-gnome3;
2024-03-04 12:33:48 +01:00
environment.plasma6.excludePackages = with pkgs.kdePackages; [ kwallet kwalletmanager kwallet-pam ];
2024-03-11 16:19:31 +01:00
2023-10-08 11:42:08 +02:00
environment.variables = {
# Old fix for black cursor on amdgpu, seems to work fine now
#KWIN_DRM_NO_AMS = "1";
2024-03-05 12:46:35 +01:00
#Fix for amdgpu crashes
2024-03-11 16:19:31 +01:00
KWIN_DRM_USE_MODIFIERS = "0";
KWIN_DRM_NO_DIRECT_SCANOUT = "1";
2024-03-26 20:01:48 +01:00
QT_PLUGIN_PATH = [ "${pkgs.qt6.qtimageformats}/${pkgs.qt6.qtbase.qtPluginPrefix}" ];
XCURSOR_THEME = "breeze_cursors";
2023-10-08 11:42:08 +02:00
};
environment.systemPackages = with pkgs; [
2024-03-26 20:01:48 +01:00
kdePackages.ark
2023-10-08 11:42:08 +02:00
];
2024-03-05 12:46:35 +01:00
2024-03-11 16:19:31 +01:00
materus.profile.steam.extraPkgs = [ pkgs.kdePackages.breeze pkgs.kdePackages.breeze-gtk pkgs.kdePackages.dolphin ];
2023-10-08 11:42:08 +02:00
}