Update theme
This commit is contained in:
parent
74e4ac823d
commit
87293b7553
7 changed files with 166 additions and 44 deletions
|
|
@ -2,7 +2,24 @@
|
|||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.desktop.themes.gtk;
|
||||
let
|
||||
cfg = config.modules.desktop.themes.gtk;
|
||||
|
||||
gruvboxPlus = pkgs.stdenv.mkDerivation rec {
|
||||
name = "gruvbox-plus";
|
||||
version = "5.1";
|
||||
src = pkgs.fetchurl {
|
||||
url =
|
||||
"https://github.com/SylEleuth/gruvbox-plus-icon-pack/releases/download/v${version}/gruvbox-plus-icon-pack-${version}.zip";
|
||||
sha256 = "1n3hqwk1mqaj8vbmy0pqbiq6v5jqrhmhin506xbpnccl28f907j0";
|
||||
};
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
${pkgs.unzip}/bin/unzip $src -d $out/
|
||||
'';
|
||||
|
||||
};
|
||||
in {
|
||||
options.modules.desktop.themes.gtk = { enable = mkBoolOpt false; };
|
||||
|
||||
|
|
@ -16,12 +33,26 @@ in {
|
|||
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = { name = "gruvbox-dark"; };
|
||||
iconTheme = { name = "gruvbox-dark"; };
|
||||
cursorTheme = {
|
||||
package = pkgs.unstable.paper-icon-theme;
|
||||
name = "Paper";
|
||||
};
|
||||
theme = {
|
||||
package = pkgs.unstable.adw-gtk3;
|
||||
name = "adw-gtk3";
|
||||
};
|
||||
iconTheme = {
|
||||
package = gruvboxPlus;
|
||||
name = "GruvboxPlus";
|
||||
};
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"gtk-3.0/gtk.css" = { source = ./gtk.css; };
|
||||
"gtk-4.0/gtk.css" = { source = ./gtk.css; };
|
||||
};
|
||||
|
||||
home = {
|
||||
|
||||
pointerCursor = {
|
||||
package = pkgs.unstable.paper-icon-theme;
|
||||
name = "Paper";
|
||||
|
|
@ -29,15 +60,6 @@ in {
|
|||
gtk.enable = true;
|
||||
x11.enable = true;
|
||||
};
|
||||
|
||||
file = {
|
||||
".themes/gruvbox-dark" = {
|
||||
source = "${inputs.gruvbox-gtk-theme}/themes/Gruvbox-Dark-BL";
|
||||
};
|
||||
".icons/gruvbox-dark" = {
|
||||
source = "${inputs.gruvbox-gtk-theme}/icons/Gruvbox-Dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue