Cursor Themes: Difference between revisions
m Add category configuration |
m style fixes |
||
| Line 12: | Line 12: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
home.pointerCursor = | |||
let | |||
getFrom = url: hash: name: { | |||
gtk.enable = true; | |||
x11.enable = true; | |||
name = name; | |||
size = 48; | |||
package = pkgs.runCommand "moveUp" { } '' | |||
mkdir -p $out/share/icons | |||
ln -s ${ | |||
pkgs.fetchzip { | |||
url = url; | |||
hash = hash; | |||
} | |||
} $out/share/icons/${name} | |||
''; | |||
}; | |||
in | |||
getFrom "https://github.com/ful1e5/fuchsia-cursor/releases/download/v2.0.0/Fuchsia-Pop.tar.gz" | |||
"sha256-BvVE9qupMjw7JRqFUj1J0a4ys6kc9fOLBPx2bGaapTk=" | |||
"Fuchsia-Pop"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 81: | Line 81: | ||
This already fixes themes for most apps like gnome. But not all (e.g. Obsidian or Logseq). | This already fixes themes for most apps like gnome. But not all (e.g. Obsidian or Logseq). | ||
And since flatpaks are sandboxed and dont have access to the nix-store you need to give them permission, since the cursors are eventually linked to ''<code>/nix/store/...</code>'':<syntaxhighlight lang= | And since flatpaks are sandboxed and dont have access to the nix-store you need to give them permission, since the cursors are eventually linked to ''<code>/nix/store/...</code>'': | ||
flatpak --user override --filesystem=/nix/store:ro | <syntaxhighlight lang=console> | ||
$ flatpak --user override --filesystem=/nix/store:ro | |||
</syntaxhighlight>OR with the https://github.com/gmodena/nix-flatpak homeManagerModule:<syntaxhighlight lang="nix"> | </syntaxhighlight>OR with the https://github.com/gmodena/nix-flatpak homeManagerModule:<syntaxhighlight lang="nix"> | ||
services.flatpak = { | services.flatpak = { | ||