1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/configs/stylix.nix

83 lines
1.9 KiB
Nix
Raw Normal View History

2023-07-26 07:38:52 +02:00
{
pkgs,
2023-07-27 17:05:41 +02:00
config,
lib,
2023-07-26 07:38:52 +02:00
...
2025-12-27 22:22:54 +01:00
}:
let
generatedWallpaper = pkgs.runCommand "wallpaper.png" { } ''
2025-12-28 13:19:15 +01:00
${pkgs.wp-gen}/bin/wallpaper-generator lines \
2023-07-27 17:05:41 +02:00
--output $out \
2025-12-27 22:22:54 +01:00
${lib.concatMapStringsSep " " (
n: "--base0${lib.toHexString n}=${config.lib.stylix.colors.withHashtag."base0${lib.toHexString n}"}"
) (lib.range 0 15)}
2023-07-27 17:05:41 +02:00
'';
2025-12-27 22:22:54 +01:00
in
{
2023-07-26 07:38:52 +02:00
# https://danth.github.io/stylix/tricks.html
2024-07-25 20:10:45 +02:00
stylix.enable = true;
2023-07-27 17:05:41 +02:00
stylix.image = generatedWallpaper;
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-medium.yaml";
2025-02-01 14:42:21 +01:00
stylix.cursor = {
name = "capitaine-cursors-white";
package = pkgs.capitaine-cursors;
size = 12;
};
home-manager.users.me = {
stylix.autoEnable = true;
};
2025-02-01 14:42:21 +01:00
# environment.etc."stylix/wallpaper.png".source = generatedWallpaper;
2023-07-27 17:05:41 +02:00
2023-07-26 08:55:50 +02:00
# stylix.polarity = "either";
# stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
# onedark
# synth-midnight-dark
# apprentice # https://romainl.github.io/Apprentice/
# one-light
# onedark
# material # https://github.com/ntpeters/base16-materialtheme-scheme
# material-palenight
# material-lighter
# tomorrow # https://github.com/chriskempson/tomorrow-theme
# tomorrow-night
# gruvbox-light-medium # https://github.com/dawikur/base16-gruvbox-scheme
# gruvbox-dark-medium
# selenized-light # https://github.com/jan-warchol/selenized
# selenized-dark
# papercolor-light
# papercolor-dark
# dracula # https://draculatheme.com/
# }.yaml";
2023-07-26 07:38:52 +02:00
stylix.fonts = {
serif = {
package = pkgs.noto-fonts;
name = "Noto Serif";
};
sansSerif = {
package = pkgs.noto-fonts;
name = "Noto Sans";
};
monospace = {
package = pkgs.noto-fonts;
name = "Noto Sans Mono";
};
emoji = {
2025-12-02 21:37:02 +01:00
package = pkgs.noto-fonts-color-emoji;
2023-07-26 07:38:52 +02:00
name = "Noto Color Emoji";
};
sizes = {
terminal = 6;
applications = 10;
};
};
}