Use modules folder
This commit is contained in:
parent
e42f845f09
commit
2903676336
46 changed files with 21 additions and 21 deletions
11
modules/theme/default.nix
Normal file
11
modules/theme/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
theme = import ./everforest;
|
||||
colors = {
|
||||
undefined = "#ff00ff";
|
||||
fg1 = "#ffffff";
|
||||
};
|
||||
in
|
||||
{
|
||||
css = lib: lib.strings.concatStringsSep "\n" (lib.attrValues (lib.mapAttrs (k: v: " --${k}: ${v};") theme.colors));
|
||||
}
|
||||
// theme // { colors = theme.colors // colors; }
|
24
modules/theme/everforest/default.nix
Normal file
24
modules/theme/everforest/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
theme = "everforest";
|
||||
|
||||
kitty-theme = "Everforest Dark Hard";
|
||||
gtkTheme = pkgs: {
|
||||
package = pkgs.callPackage ./gtk.nix {};
|
||||
name = "Everforest-Dark-BL";
|
||||
};
|
||||
gtkIconTheme = pkgs: {
|
||||
package = pkgs.callPackage ./gtk.nix {};
|
||||
name = "Everforest-Dark";
|
||||
};
|
||||
wallpaper = "306286.jpg";
|
||||
|
||||
colors = {
|
||||
bg0 = "#1e2326";
|
||||
bg1 = "#272e33";
|
||||
bg2 = "#2e383c";
|
||||
fg0 = "#d3c6aa";
|
||||
primary = "#a7c080";
|
||||
alert = "#e67e80";
|
||||
disabled = "#2e383c";
|
||||
};
|
||||
}
|
49
modules/theme/everforest/gtk.nix
Normal file
49
modules/theme/everforest/gtk.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, gtk-engine-murrine
|
||||
, jdupes
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "everforest-gtk";
|
||||
version = "unstable-2022-12-09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Fausto-Korpsvart";
|
||||
repo = "Everforest-GTK-Theme";
|
||||
rev = "af5920c8a16a53064cbcb7582bd7ef0ba8f44d83";
|
||||
sha256 = "lIAJN8ljmN4RyvyPpHoAheyQBX/qyGXZsGvoTl1vt50=";
|
||||
};
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
nativeBuildInputs = [ jdupes ];
|
||||
|
||||
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/themes
|
||||
|
||||
for f in `find source/themes -name "*.css"`; do
|
||||
grep -v '^ border: 1px ' $f > tmp
|
||||
mv tmp $f
|
||||
done
|
||||
|
||||
mkdir -p $out/share/themes && cp -a source/themes/* $out/share/themes
|
||||
mkdir -p $out/share/icons && cp -a source/icons/* $out/share/icons
|
||||
|
||||
jdupes -L -r $out/share
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Everforest colour palette for GTK";
|
||||
homepage = "https://github.com/Fausto-Korpsvart/Everforest-GTK-Theme";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
21
modules/theme/nord/default.nix
Normal file
21
modules/theme/nord/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
theme = "nord";
|
||||
|
||||
kitty-theme = "Nord";
|
||||
wallpaper = "roxynord.png";
|
||||
gtkTheme = pkgs: {
|
||||
package = pkgs.nordic;
|
||||
name = "Nordic";
|
||||
};
|
||||
gtkIconTheme = pkgs: null;
|
||||
|
||||
colors = {
|
||||
bg0 = "#2e3440";
|
||||
bg1 = "#3b4252";
|
||||
bg2 = "#434c53";
|
||||
fg0 = "#eceff4";
|
||||
primary = "#8fbcbb";
|
||||
alert = "#bf616a";
|
||||
disabled = "#434c5e";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue