mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-26 01:51:37 +00:00
home-cursor: add doticons option
This commit is contained in:
parent
00712ac0fb
commit
dcc20acf93
1 changed files with 11 additions and 1 deletions
|
@ -58,6 +58,14 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dotIcons = {
|
||||||
|
enable = mkEnableOption ''
|
||||||
|
`.icons` config generation for {option}`home.pointerCursor`
|
||||||
|
'' // {
|
||||||
|
default = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
hyprcursor = {
|
hyprcursor = {
|
||||||
enable = mkEnableOption "hyprcursor config generation";
|
enable = mkEnableOption "hyprcursor config generation";
|
||||||
|
|
||||||
|
@ -175,7 +183,9 @@ in {
|
||||||
"${defaultIndexThemePackage}/share/icons/default/index.theme";
|
"${defaultIndexThemePackage}/share/icons/default/index.theme";
|
||||||
xdg.dataFile."icons/${cfg.name}".source =
|
xdg.dataFile."icons/${cfg.name}".source =
|
||||||
"${cfg.package}/share/icons/${cfg.name}";
|
"${cfg.package}/share/icons/${cfg.name}";
|
||||||
|
}
|
||||||
|
|
||||||
|
(mkIf cfg.dotIcons.enable {
|
||||||
# Add symlink of cursor icon directory to $HOME/.icons, needed for
|
# Add symlink of cursor icon directory to $HOME/.icons, needed for
|
||||||
# backwards compatibility with some applications. See:
|
# backwards compatibility with some applications. See:
|
||||||
# https://specifications.freedesktop.org/icon-theme-spec/latest/ar01s03.html
|
# https://specifications.freedesktop.org/icon-theme-spec/latest/ar01s03.html
|
||||||
|
@ -183,7 +193,7 @@ in {
|
||||||
"${defaultIndexThemePackage}/share/icons/default/index.theme";
|
"${defaultIndexThemePackage}/share/icons/default/index.theme";
|
||||||
home.file.".icons/${cfg.name}".source =
|
home.file.".icons/${cfg.name}".source =
|
||||||
"${cfg.package}/share/icons/${cfg.name}";
|
"${cfg.package}/share/icons/${cfg.name}";
|
||||||
}
|
})
|
||||||
|
|
||||||
(mkIf cfg.x11.enable {
|
(mkIf cfg.x11.enable {
|
||||||
xsession.profileExtra = ''
|
xsession.profileExtra = ''
|
||||||
|
|
Loading…
Add table
Reference in a new issue