Package sweet-cursors and use it in the greeter

This commit is contained in:
2026-08-07 12:58:15 +02:00
parent 593c7ed73c
commit 3dbd61bf7f
4 changed files with 38 additions and 0 deletions
+9
View File
@@ -26,6 +26,10 @@
url = "git+https://gitea.moonarch.de/nevaforget/moonset.git?ref=refs/tags/v0.9.1";
flake = false;
};
sweet-cursors = {
url = "git+https://gitea.moonarch.de/nevaforget/Sweet-cursors.git";
flake = false;
};
};
outputs = { self, nixpkgs, ... }@inputs:
@@ -48,6 +52,11 @@
src = inputs.moonset;
version = "0.9.1";
};
sweet-cursors = pkgs.callPackage ./pkgs/sweet-cursors.nix {
src = inputs.sweet-cursors;
version = "0-unstable";
};
};
in
{
+1
View File
@@ -112,6 +112,7 @@ in
# Moonarch's own programs
moonarchPkgs.moonlock
moonarchPkgs.moonset
moonarchPkgs.sweet-cursors
moonarch-scripts
# Compositor extras
+1
View File
@@ -12,6 +12,7 @@ let
moongreetConfig = pkgs.writeText "moongreet.toml" ''
[appearance]
background = "${wallpaper}"
cursor-theme = "Sweet-cursors"
cursor-size = 24
'';
+27
View File
@@ -0,0 +1,27 @@
# ABOUTME: Nix build recipe for the Sweet cursor theme.
# ABOUTME: Counterpart to moonarch-pkgbuilds/sweet-cursors-git/PKGBUILD.
{ lib, stdenvNoCC, src, version }:
stdenvNoCC.mkDerivation {
pname = "sweet-cursors";
inherit version src;
dontBuild = true;
dontConfigure = true;
installPhase = ''
runHook preInstall
install -dm755 "$out/share/icons"
cp -r . "$out/share/icons/Sweet-cursors"
rm -rf "$out/share/icons/Sweet-cursors/.git"
runHook postInstall
'';
meta = {
description = "Sweet cursor theme";
homepage = "https://gitea.moonarch.de/nevaforget/Sweet-cursors";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.all;
};
}