From dcc20acf93f338a47468996a0055cda1112c051c Mon Sep 17 00:00:00 2001 From: isabel Date: Tue, 18 Feb 2025 22:37:18 +0000 Subject: [PATCH] home-cursor: add doticons option --- modules/config/home-cursor.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index 7ae819532..66871e698 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -58,6 +58,14 @@ let ''; }; + dotIcons = { + enable = mkEnableOption '' + `.icons` config generation for {option}`home.pointerCursor` + '' // { + default = true; + }; + }; + hyprcursor = { enable = mkEnableOption "hyprcursor config generation"; @@ -175,7 +183,9 @@ in { "${defaultIndexThemePackage}/share/icons/default/index.theme"; xdg.dataFile."icons/${cfg.name}".source = "${cfg.package}/share/icons/${cfg.name}"; + } + (mkIf cfg.dotIcons.enable { # Add symlink of cursor icon directory to $HOME/.icons, needed for # backwards compatibility with some applications. See: # https://specifications.freedesktop.org/icon-theme-spec/latest/ar01s03.html @@ -183,7 +193,7 @@ in { "${defaultIndexThemePackage}/share/icons/default/index.theme"; home.file.".icons/${cfg.name}".source = "${cfg.package}/share/icons/${cfg.name}"; - } + }) (mkIf cfg.x11.enable { xsession.profileExtra = ''