whoops
This commit is contained in:
parent
14c00b8cd9
commit
9519f95244
2 changed files with 35 additions and 19 deletions
|
|
@ -39,7 +39,7 @@ in
|
||||||
background = "#000000";
|
background = "#000000";
|
||||||
greeters.gtk = {
|
greeters.gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
theme.name = "Tokyonight-Storm-B";
|
theme.name = "Tokyonight-Dark";
|
||||||
iconTheme.name = "Vivid-Dark-Icons";
|
iconTheme.name = "Vivid-Dark-Icons";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -59,27 +59,23 @@ in
|
||||||
'';
|
'';
|
||||||
mode = "0644";
|
mode = "0644";
|
||||||
};
|
};
|
||||||
|
|
||||||
qt.enable = true;
|
qt.enable = true;
|
||||||
qt.platformTheme = "qt5ct";
|
qt.platformTheme = "qt5ct";
|
||||||
qt.style = "adwaita-dark";
|
qt.style = "adwaita-dark";
|
||||||
|
|
||||||
environment.etc."gtk-3.0/settings.ini".text = ''
|
environment.etc."gtk-3.0/settings.ini".text = ''
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-application-prefer-dark-theme=1
|
gtk-application-prefer-dark-theme=1
|
||||||
gtk-theme-name=Tokyonight-Storm-B
|
gtk-theme-name=Tokyonight-Dark
|
||||||
gtk-icon-theme-name=Vivid-Dark-Icons
|
gtk-icon-theme-name=Vivid-Dark-Icons
|
||||||
gtk-font-name=Sans 10
|
gtk-font-name=Sans 10
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.etc."gtk-4.0/settings.ini".text = ''
|
environment.etc."gtk-4.0/settings.ini".text = ''
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-application-prefer-dark-theme=1
|
gtk-application-prefer-dark-theme=1
|
||||||
gtk-theme-name=Tokyonight-Storm-B
|
gtk-theme-name=Tokyonight-Dark
|
||||||
gtk-icon-theme-name=Vivid-Dark-Icons
|
gtk-icon-theme-name=Vivid-Dark-Icons
|
||||||
gtk-font-name=Sans 10
|
gtk-font-name=Sans 10
|
||||||
'';
|
'';
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
arandr
|
arandr
|
||||||
nitrogen
|
nitrogen
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, gtk_engines }:
|
{ lib, stdenv, fetchFromGitHub, gtk-engine-murrine, gtk_engines, bash, sassc }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "tokyo-night-gtk";
|
pname = "tokyo-night-gtk";
|
||||||
|
|
@ -11,20 +11,40 @@ stdenv.mkDerivation {
|
||||||
sha256 = "0c7sp9n2pc70yy9msmbmcyhqbr63v1ssnsxk6vg10zwwc3wl19h0";
|
sha256 = "0c7sp9n2pc70yy9msmbmcyhqbr63v1ssnsxk6vg10zwwc3wl19h0";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ ];
|
nativeBuildInputs = [ bash sassc ];
|
||||||
|
buildInputs = [ gtk-engine-murrine gtk_engines ];
|
||||||
buildInputs = [
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
||||||
gtk-engine-murrine
|
|
||||||
gtk_engines
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [
|
|
||||||
gtk-engine-murrine
|
|
||||||
];
|
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
cd themes
|
||||||
|
substituteInPlace install.sh \
|
||||||
|
--replace-fail 'name="${2}${3}${4}${5}${6}"' 'name="Tokyonight${3}${4}${5}"'
|
||||||
|
substituteInPlace install.sh \
|
||||||
|
--replace-fail 'if [ "$UID" -eq "$ROOT_UID" ]; then' 'if false; then' \
|
||||||
|
--replace-fail 'DEST_DIR="/usr/share/themes"' 'DEST_DIR="$TMPDIR/.themes"' \
|
||||||
|
--replace-fail 'DEST_DIR="$HOME/.themes"' 'DEST_DIR="$TMPDIR/.themes"'
|
||||||
|
substituteInPlace install.sh \
|
||||||
|
--replace-fail 'if [[ "$(command -v gnome-shell)" ]]; then' 'if false; then' \
|
||||||
|
--replace-fail 'if has_command xfce4-popup-whiskermen; then' 'if false; then' \
|
||||||
|
--replace-fail 'if (pgrep xfce4-session &>/dev/null); then' 'if false; then'
|
||||||
|
'';
|
||||||
|
buildPhase = ''
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
mkdir -p $TMPDIR/.themes
|
||||||
|
bash ./install.sh
|
||||||
|
bash ./install.sh --tweaks storm
|
||||||
|
bash ./install.sh --tweaks storm black
|
||||||
|
bash ./install.sh --tweaks storm black outline
|
||||||
|
echo "Created themes:"
|
||||||
|
ls -la $TMPDIR/.themes/
|
||||||
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/share/themes
|
mkdir -p $out/share/themes
|
||||||
cp -r themes/src/Tokyonight-* $out/share/themes/
|
for theme in $TMPDIR/.themes/*; do
|
||||||
|
if [ -d "$theme" ]; then
|
||||||
|
cp -r "$theme" "$out/share/themes/"
|
||||||
|
fi
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue