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

62 lines
1.5 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }:
2023-10-08 11:42:08 +02:00
let
westonSddm = pkgs.writeText "weston.ini"
''
[core]
xwayland=true
shell=fullscreen-shell.so
[keyboard]
keymap_layout=pl
[output]
name=DP-3
mode=1920x1080@240
[output]
name=DP-2
mode=off
[output]
name=HDMI-A-3
mode=off
''
;
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;
services.xserver.displayManager.sddm.settings = {
General = {
#DisplayServer = "wayland";
2024-03-11 16:19:31 +01:00
InputMethod = "";
2023-10-08 11:42:08 +02:00
};
Theme = {
CursorTheme = "breeze_cursors";
CursorSize = "24";
};
Wayland = {
#CompositorCommand = "${pkgs.weston}/bin/weston -c ${westonSddm}";
2024-03-11 16:19:31 +01:00
2023-10-08 11:42:08 +02:00
};
};
2024-03-04 12:33:48 +01:00
services.xserver.desktopManager.plasma6.enable = true;
services.xserver.desktopManager.plasma6.enableQt5Integration = true;
2024-03-03 13:19:40 +01:00
programs.gnupg.agent.pinentryFlavor = "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";
2023-10-08 11:42:08 +02:00
};
environment.systemPackages = with pkgs; [
2024-03-11 16:46: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
}