diff --git a/config/kde/gtk-fixes/default.nix b/config/kde/gtk-fixes/default.nix new file mode 100644 index 00000000..7cebdf35 --- /dev/null +++ b/config/kde/gtk-fixes/default.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + gtk.enable = true; + imports = [ + ./gtk3.nix + ]; +} diff --git a/config/kde/gtk-fixes/gtk3.nix b/config/kde/gtk-fixes/gtk3.nix new file mode 100644 index 00000000..28b1d5f2 --- /dev/null +++ b/config/kde/gtk-fixes/gtk3.nix @@ -0,0 +1,37 @@ +{ ... }: +{ + gtk.gtk3 = { + extraConfig = { + gtk-decoration-layout = "menu:close"; + }; + extraCss = '' + .window-frame, .window-frame:backdrop { + box-shadow: 0 0 0 black; + border-style: none; + margin: 0; + border-radius: 0; + } + + .titlebar { + border-radius: 0; + } + + .window-frame.csd.popup { + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); + } + + .header-bar { + background-image: none; + background-color: #ededed; + box-shadow: none; + } + GtkLabel.title { + opacity: 0; + } + ''; + }; + home.sessionVariables = { + GTK_USE_PORTAL = 1; + GDK_DEBUG = "portals"; # sigh… + }; +} diff --git a/config/kde/home-manager.nix b/config/kde/home-manager.nix index 713bfce7..fa4b6777 100644 --- a/config/kde/home-manager.nix +++ b/config/kde/home-manager.nix @@ -6,6 +6,7 @@ plasma-manager.homeManagerModules.plasma-manager ./theming.nix ./krdp.nix + ./gtk-fixes ]; programs.plasma.kwin.virtualDesktops = { rows = 3; diff --git a/modules/nix/autoupdater.nix b/modules/nix/autoupdater.nix index efa63214..9a2bc83d 100644 --- a/modules/nix/autoupdater.nix +++ b/modules/nix/autoupdater.nix @@ -40,7 +40,7 @@ with lib; }; }; - config.nix.auto-update.enable = mkDefault config.nix.enable; + #config.nix.auto-update.enable = mkDefault config.nix.enable; config.nix.auto-update.reboot = mkDefault true; config.systemd.services.nixos-upgrade = mkIf config.nix.enable { description = "NixOS Upgrade";