Files
nixos-config/user/chest/modules/style.nix
T

147 lines
3.4 KiB
Nix
Raw Normal View History

2025-10-09 22:42:07 +03:00
{ pkgs, config, lib, ... }: let
miku-cursor = pkgs.stdenv.mkDerivation {
name = "Miku cursor";
# Hatsune Miku Cursor
# Author: NOiiRE ❖
# https://ko-fi.com/s/dcea0e990f
src = pkgs.fetchzip {
name = "MikuCursor.zip";
url = "https://ko-fi.com/api/file-upload/cf0bb0a7-feb8-4090-8e2e-68fd33b7b040/download?transactionId=684d8995-2014-4f9f-bb77-39e4dae3bad7";
curlOpts = "-A HTTPie/3.2.4";
extension = "zip";
hash = "sha256-WYk8Hh92IE3CyUCAOp7QMKrYN8Hpt/cs+O17jhh5tJs=";
};
nativeBuildInputs = [ pkgs.win2xcur ];
patchPhase = ''
rm 02-Link.ani
pwd
echo $src
mkdir Miku/cursors -p
win2xcur $src/*.ani -o Miku/cursors
cd Miku/
echo "[Icon theme]" > index.theme
echo "Name=Miku Cursor" >> index.theme
cd cursors/
mv 'Miku normal' default
ln -s default left_ptr
ln -s default arrow
mv 'Miku link' pointer
ln -s pointer hand2
mv 'Miku busy' wait
ln -s wait progress
mv 'Miku help' help
ln -s help question_arrow
mv 'Miku text' text
ln -s text xterm
mv 'Miku hand' pencil
mv 'Miku precision' cross
ln -s cross crosshair
ln -s cross tcross
mv 'Miku unavailable' not-allowed
# mv 'Miku location' ?
# mv 'Miku person' ?
mv 'Miku vert' ns-resize
ln -s ns-resize n-resize
ln -s ns-resize s-resize
ln -s ns-resize v_double_arrow
ln -s ns-resize sb_v_double_arrow
mv 'Miku horz' ew-resize
ln -s ew-resize e-resize
ln -s ew-resize w-resize
ln -s ew-resize h_double_arrow
ln -s ew-resize sb_h_double_arrow
ln -s ew-resize left_side
ln -s ew-resize right_side
mv 'Miku dgn1' nw-resize
ln -s nw-resize top_left_corner
ln -s nw-resize bottom_right_corner
mv 'Miku dgn2' ne-resize
ln -s ne-resize top_right_corner
ln -s ne-resize bottom_left_corner
mv 'Miku move' move
ln -s move nesw-resize
ln -s move grab
ln -s move grabbing
ln -s move fleur
# mv 'Miku alt' ?
cd ../..
'';
installPhase = ''
mkdir $out/share/icons -p
cp Miku $out/share/icons -r
'';
};
in {
2024-08-27 13:53:48 +03:00
stylix = {
enable = true;
targets = {
hyprland.enable = false;
waybar.enable = false;
2024-10-02 22:10:08 +03:00
kitty.variant256Colors = true;
2024-08-27 13:53:48 +03:00
};
2024-09-29 21:47:41 +03:00
base16Scheme = "${pkgs.base16-schemes}/share/themes/eris.yaml";
2024-08-27 13:53:48 +03:00
polarity = "dark";
image = pkgs.fetchurl {
url = "https://w.wallhaven.cc/full/kx/wallhaven-kxedr7.jpg";
sha256 = "0ypqnq7bsr2giq7nq1c3xrw2m0gkii9j5zhfp512r93wc96zvm50";
};
2025-01-01 17:18:03 +03:00
iconTheme = {
enable = true;
package = pkgs.pop-icon-theme;
dark = "Pop-Dark";
};
2025-10-09 22:42:07 +03:00
cursor = {
name = "Miku";
2025-04-11 14:16:29 +03:00
size = 16;
2025-10-09 22:42:07 +03:00
package = miku-cursor;
2025-04-02 15:07:36 +03:00
};
2024-08-27 13:53:48 +03:00
fonts = {
monospace = {
name = "JetBrains Mono";
package = pkgs.jetbrains-mono;
};
2025-03-31 14:55:54 +03:00
emoji = {
package = pkgs.noto-fonts-monochrome-emoji;
name = "Noto Emoji";
};
2024-08-27 13:53:48 +03:00
sizes = {
applications = 13;
desktop = 12;
};
};
opacity = {
popups = .8;
terminal = .5;
};
};
2025-09-29 17:49:38 +03:00
dconf.settings = {
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
};
gtk = {
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = true;
};
};
2024-08-27 13:53:48 +03:00
}