Some changes to make kde happy with our x11 config

This commit is contained in:
Natsu Kagami 2022-10-17 10:24:54 +02:00 committed by Natsu Kagami
parent d95d41088d
commit f8b52f9140
2 changed files with 15 additions and 6 deletions

View file

@ -28,8 +28,6 @@ in
pkgs.unstable.vscode
feh
deluge # Torrent client
mailspring
unstable.discord
pavucontrol # PulseAudio control panel
unstable.slack
@ -37,7 +35,10 @@ in
dex # .desktop file management, startup
sct # Display color temperature
xdg-utils # Open stuff
]);
] ++ (if pkgs.stdenv.isAarch64 then [ ] else [
mailspring
unstable.discord
]));
# Cursor
home.pointerCursor = {

View file

@ -1,8 +1,16 @@
{ pkgs, config, lib, ... }:
let
cfg = config.linux.graphical;
in
with lib;
{
imports = [ ./x11/hidpi.nix ./x11/i3.nix ];
config = mkIf (config.linux.graphical.type == "x11") {
options.linux.graphical.hasDE = mkOption {
type = types.bool;
description = "When enabled, disable stuff that already comes with a DE";
default = true;
};
config = mkIf (cfg.type == "x11") {
# X Session settings
xsession.enable = true;
@ -23,10 +31,10 @@ with lib;
home.pointerCursor.x11.enable = true;
# Notification system
services.X11.xfce4-notifyd.enable = true;
services.X11.xfce4-notifyd.enable = !cfg.hasDE;
# Picom: X Compositor
services.picom = {
services.picom = mkIf (!cfg.hasDE) {
enable = true;
blur = true;
fade = true;