From 5f061310763769fdebf6e3b1e9949a9fa033cfb7 Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Fri, 3 Jan 2025 23:06:44 +0100 Subject: [PATCH] nixos/cosmic: set default cursor theme --- nix-os/desktopManagers/cosmic.nix | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/nix-os/desktopManagers/cosmic.nix b/nix-os/desktopManagers/cosmic.nix index bdd784d..1dfb638 100644 --- a/nix-os/desktopManagers/cosmic.nix +++ b/nix-os/desktopManagers/cosmic.nix @@ -1,4 +1,10 @@ -{ inputs, lib, pkgs, ... }: +{ + inputs, + lib, + pkgs, + self, + ... +}: let cosmic-configuration = pkgs.substituteAllFiles { @@ -20,6 +26,7 @@ in { imports = [ "${inputs.cosmic-modules}/nixos/cosmic/module.nix" + "${self}/nix-os/generic/dconf.nix" ]; config = { services.desktopManager.cosmic.enable = true; @@ -29,7 +36,26 @@ in ]; environment.systemPackages = with pkgs; [ (lib.hiPrio cosmic-configuration.share) + google-cursor ]; services.gnome.gnome-keyring.enable = true; + + proot.dconf = { + rules."org/gnome/desktop/interface".cursor-theme = "GoogleDot-White"; + profiles.user.rulesToApply = [ + "org/gnome/desktop/interface" + ]; + }; + + environment.sessionVariables = { + XCURSOR_SIZE = "16"; + XCURSOR_THEME = "GoogleDot-White"; + }; + + environment.etc."xdg/gtk-3.0/settings.ini".text = '' + [Settings] + gtk-cursor-theme-name=GoogleDot-White + gtk-application-prefer-dark-theme=true + ''; }; }