theme.nix (1530B)
1 # modules/features/theme.nix — Rosé Pine Dawn for the boot path, by Stylix: 2 # the GRUB menu and the Linux console (which is what tuigreet draws on). 3 # 4 # Stylix only themes the targets enabled here (autoEnable = false), so the 5 # hand-tuned Rosé Pine (main) setups for the desktop, neovim, bat, starship, 6 # yazi and friends stay as they are; its home-manager module is not imported. 7 # 8 # The console target maps the scheme onto the 16 VT colours, so tuigreet's 9 # --theme names in configuration.nix resolve to Dawn: 10 # black base00 #faf4ed (bg) · red love · green pine · yellow rose · blue iris 11 # magenta gold · cyan foam · gray base05 #575279 (text) · darkgray muted 12 { inputs, ... }: 13 { 14 flake.nixosModules.theme = 15 { pkgs, ... }: 16 { 17 imports = [ inputs.stylix.nixosModules.stylix ]; 18 19 stylix = { 20 enable = true; 21 autoEnable = false; 22 homeManagerIntegration.autoImport = false; 23 24 base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine-dawn.yaml"; 25 polarity = "light"; 26 27 # GRUB renders these (converted to .pf2); applications is its font size, 28 # sized up for the 2560x1440 panel GRUB draws at natively. 29 fonts = { 30 sansSerif = { package = pkgs.noto-fonts; name = "Noto Sans"; }; 31 monospace = { package = pkgs.noto-fonts; name = "Noto Sans Mono"; }; 32 sizes.applications = 24; 33 }; 34 35 targets.grub.enable = true; # cream background, pine selection bar 36 targets.console.enable = true; # the VT palette tuigreet uses 37 }; 38 } 39 ; 40 }