Switch to delta icon theme

Remove configure-gtk script now that it's fixed
Update version of delta-icon-theme fro GitHub
This commit is contained in:
Evie Litherland-Smith 2023-09-08 12:27:34 +01:00
parent 2d11da9067
commit 2b9697aad7
3 changed files with 12 additions and 35 deletions

View file

@ -1,23 +1,5 @@
{ config, pkgs, ... }: { pkgs, ... }:
let let
configure-gtk = pkgs.writeTextFile {
name = "configure-gtk";
destination = "/bin/configure-gtk";
executable = true;
text = let
schema = pkgs.gsettings-desktop-schemas;
datadir = "${schema}/share/gsettings-schemas/${schema.name}";
gtk-theme = config.gtk.theme.name;
icon-theme = config.gtk.iconTheme.name;
cursor-theme = config.gtk.cursorTheme.name;
in ''
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
gnome_schema=org.gnome.desktop.interface
gsettings set $gnome_schema gtk-theme '${gtk-theme}'
gsettings set $gnome_schema icon-theme '${icon-theme}'
gsettings set $gnome_schema cursor-theme '${cursor-theme}'
'';
};
catppuccin-gtk-lavender = pkgs.catppuccin-gtk.override { catppuccin-gtk-lavender = pkgs.catppuccin-gtk.override {
accents = [ "lavender" ]; accents = [ "lavender" ];
size = "standard"; size = "standard";
@ -25,7 +7,11 @@ let
variant = "mocha"; variant = "mocha";
}; };
in { in {
home.packages = [ configure-gtk ]; home.packages = with pkgs; [
gnome.adwaita-icon-theme
libsForQt5.breeze-gtk
hicolor-icon-theme
];
gtk = { gtk = {
enable = true; enable = true;
cursorTheme = { cursorTheme = {
@ -33,8 +19,8 @@ in {
name = "Catppuccin-Mocha-Dark-Cursors"; name = "Catppuccin-Mocha-Dark-Cursors";
}; };
iconTheme = { iconTheme = {
package = pkgs.catppuccin-papirus-folders; package = pkgs.callPackage ./pkgs/delta-icon-theme { };
name = "Papirus-Dark"; name = "Delta";
}; };
theme = { theme = {
package = catppuccin-gtk-lavender; package = catppuccin-gtk-lavender;

View file

@ -1,21 +1,17 @@
{ { stdenvNoCC, fetchFromGitHub, gtk3, }:
stdenvNoCC,
fetchFromGitHub,
gtk3,
}:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "delta-icon-theme"; pname = "delta-icon-theme";
version = "194df98e422c0a81912194808b76712bf5d78803"; version = "7b5bc269516845518da5095ed8b8cbbc34d68edb";
dontBuild = true; dontBuild = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Delta-Icons"; owner = "Delta-Icons";
repo = "linux"; repo = "linux";
rev = version; rev = version;
sha256 = "sha256-SSkI5Aj/TTHfDRYCWe7Ell6cWvPmBUeO/AC4xRrEUvU="; sha256 = "sha256-/QraIVlgCT4AH+LU5gMtBmIZo3TBdwyeXRyBUxP8KJA=";
}; };
nativeBuildInputs = [gtk3]; nativeBuildInputs = [ gtk3 ];
dontDropIconThemeCache = true; dontDropIconThemeCache = true;

View file

@ -6,11 +6,6 @@
libnotify libnotify
glib glib
gsettings-desktop-schemas gsettings-desktop-schemas
gnome.adwaita-icon-theme
papirus-folders
catppuccin-cursors
catppuccin-papirus-folders
catppuccin-gtk
]; ];
security.rtkit.enable = true; security.rtkit.enable = true;
sound.enable = true; sound.enable = true;