notwaita.nix 666 B

1234567891011121314151617181920212223242526
  1. { pkgs, lib, ... }:
  2. let
  3. notwaitaBlackSrc = pkgs.fetchurl {
  4. url = "https://github.com/ful1e5/notwaita-cursor/releases/download/v1.0.0-alpha1/Notwaita-Black.tar.xz";
  5. sha256 = "sha256-P/F4NRBqz/6Ws9//qEKMYdqtfG5LdZa6jihqueZnx88==";
  6. };
  7. notwaitaBlackCursor = pkgs.runCommand "notwaita-black-cursor" {
  8. nativeBuildInputs = [ pkgs.xz pkgs.gnutar ];
  9. } ''
  10. mkdir -p $out/share/icons
  11. tar -xJf ${notwaitaBlackSrc} -C $out/share/icons
  12. '';
  13. in
  14. {
  15. home = {
  16. pointerCursor = {
  17. package = notwaitaBlackCursor;
  18. name = "Notwaita-Black";
  19. size = 20; # adjust size you want
  20. gtk.enable = true;
  21. x11.enable = true;
  22. };
  23. };
  24. }