1 parent
80ec3dfdd3
commit
079cceb554
57 files changed
+4092
-538
No files matched your search
+56
-22
@@ -1,12 +1,13 @@
|
||||
# Theme: one palette, fonts, cursor and icons for the whole desktop, applied by
|
||||
# Stylix (github:nix-community/stylix).
|
||||
# Theme: one palette, fonts, cursor, icons and wallpaper for the whole desktop,
|
||||
# applied by Stylix (github:nix-community/stylix).
|
||||
# NixOS Stylix itself (its home-manager module is added to every
|
||||
# home-manager user and inherits these settings), the TTY
|
||||
# palette and the default font families.
|
||||
# home-manager which programs Stylix themes.
|
||||
# Targets are opt-in (`autoEnable = false`): Stylix touches only what is listed
|
||||
# here. A new program that Stylix supports gets its `stylix.targets.<name>`
|
||||
# line in this file.
|
||||
# home-manager user and inherits these settings): palette,
|
||||
# fonts, cursor, icons, the wallpaper image, and the system
|
||||
# targets (TTY palette, fontconfig, GTK, Qt).
|
||||
# home-manager the programs Stylix themes, and the targets switched off.
|
||||
# Targets are opt-out (`autoEnable = true`): Stylix themes every program it
|
||||
# supports. A target that clashes with this desktop is switched off by name in
|
||||
# the home-manager half; so is a program whose theming is not wanted.
|
||||
{ config, inputs, ... }:
|
||||
let
|
||||
inherit (config.meta) owner;
|
||||
@@ -22,14 +23,16 @@ in
|
||||
|
||||
stylix = {
|
||||
enable = true;
|
||||
# With autoEnable Stylix would also write GNOME, KDE, X resources, gedit,
|
||||
# gdu, Blender, ... configs and rebuild gtksourceview through an overlay.
|
||||
autoEnable = false;
|
||||
# Stylix themes everything it supports, so it also writes GNOME, KDE, X
|
||||
# resources, gedit, gdu, Blender, ... configs and rebuilds gtksourceview
|
||||
# through an overlay. The exceptions are the `enable = false` lines in
|
||||
# the home-manager half below.
|
||||
autoEnable = true;
|
||||
|
||||
polarity = "dark";
|
||||
|
||||
# Catppuccin Mocha, from tinted-theming/schemes base16/catppuccin-mocha.yaml.
|
||||
# Inline, so evaluation needs no import-from-derivation. Another scheme:
|
||||
# Inline, so the scheme needs no import-from-derivation. Another scheme:
|
||||
# base16Scheme = "${pkgs.base16-schemes}/share/themes/<name>.yaml";
|
||||
base16Scheme = {
|
||||
scheme = "Catppuccin Mocha";
|
||||
@@ -54,8 +57,14 @@ in
|
||||
base0F = "f2cdcd"; # flamingo
|
||||
};
|
||||
|
||||
# No wallpaper: Noctalia draws it, so every Stylix wallpaper part stays off.
|
||||
image = null;
|
||||
# The desktop wallpaper, set in this one place. Noctalia draws it
|
||||
# (desktop/noctalia.nix reads it) and the SDDM login screen shows it
|
||||
# (desktop/sddm.nix). To change it, point this at another image: a file
|
||||
# next to this one (`./wallpaper.png`) or a `pkgs.fetchurl { url; hash; }`.
|
||||
# The colours do not follow it: base16Scheme above is explicit. The
|
||||
# Stylix targets that would draw the wallpaper themselves are off in the
|
||||
# home-manager half, so Noctalia stays the only one.
|
||||
image = pkgs.nixos-artwork.wallpapers.catppuccin-mocha.gnomeFilePath;
|
||||
|
||||
fonts = {
|
||||
monospace = {
|
||||
@@ -63,8 +72,8 @@ in
|
||||
name = "Monaspace Radon";
|
||||
};
|
||||
sansSerif = {
|
||||
package = pkgs.inter;
|
||||
name = "Inter";
|
||||
package = pkgs.monaspace;
|
||||
name = "Monaspace Radon";
|
||||
};
|
||||
serif = {
|
||||
package = pkgs.noto-fonts;
|
||||
@@ -90,6 +99,7 @@ in
|
||||
};
|
||||
|
||||
targets = {
|
||||
# On through autoEnable anyway; listed for what each one is for.
|
||||
# TTY palette (vt.default_{red,grn,blu} kernel parameters).
|
||||
console.enable = true;
|
||||
# fontconfig default families from `fonts` above, and their packages.
|
||||
@@ -97,6 +107,7 @@ in
|
||||
font-packages.enable = true;
|
||||
# programs.dconf, which home-manager's GTK settings need.
|
||||
gtk.enable = true;
|
||||
qt.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -109,7 +120,11 @@ in
|
||||
flatpakSupport.enable = false;
|
||||
};
|
||||
qt.enable = true;
|
||||
hyprland.enable = true;
|
||||
hyprland = {
|
||||
enable = true;
|
||||
# With `stylix.image` set, Stylix would also start hyprpaper to draw it.
|
||||
hyprpaper.enable = false;
|
||||
};
|
||||
noctalia = {
|
||||
enable = true;
|
||||
# Keep Noctalia's own panel opacities and the shell font chosen for it.
|
||||
@@ -118,7 +133,7 @@ in
|
||||
};
|
||||
wezterm = {
|
||||
enable = true;
|
||||
fonts.override.monospace.name = "Monaspace Krypton";
|
||||
fonts.override.monospace.name = "Monaspace Radon";
|
||||
};
|
||||
bat.enable = true;
|
||||
btop.enable = true;
|
||||
@@ -126,11 +141,30 @@ in
|
||||
starship.enable = true;
|
||||
mpv.enable = true;
|
||||
zathura.enable = true;
|
||||
# Not enabled:
|
||||
# - neovim: cli/neovim/init.lua still sets the catppuccin colorscheme;
|
||||
# Stylix's mini.base16 would run after it and stack a second one.
|
||||
# Writes the palette as a CSS snippet and the fonts into the vaults listed
|
||||
# here; the name is the vault's attribute in desktop/obsidian.nix.
|
||||
obsidian = {
|
||||
enable = true;
|
||||
vaultNames = [ "Notes" ];
|
||||
};
|
||||
|
||||
# Switched off although autoEnable would turn them on:
|
||||
# - gnome.image, kde.useWallpaper: with `stylix.image` set they would
|
||||
# write the wallpaper into GNOME's dconf and KDE's theme; neither
|
||||
# desktop runs here and Noctalia draws the wallpaper.
|
||||
# - neovim: themed by the owner's nvim repository (inputs.nvim,
|
||||
# modules/cli/neovim.nix), which picks its own colorscheme
|
||||
# (silkcircuit); Stylix's mini.base16 would be added on top of it.
|
||||
# - firefox: needs a declared profile (programs.firefox.profiles);
|
||||
# declaring one would replace the existing Firefox profile.
|
||||
# declaring one would replace the existing Firefox profile, so the
|
||||
# target only warns about the missing profileNames.
|
||||
# - rofi: not installed; the pinned Stylix target still sets the renamed
|
||||
# `programs.rofi.font` and warns on every evaluation.
|
||||
gnome.image.enable = false;
|
||||
kde.useWallpaper = false;
|
||||
neovim.enable = false;
|
||||
firefox.enable = false;
|
||||
rofi.enable = false;
|
||||
};
|
||||
|
||||
# libadwaita/GTK 4 apps read the preference from dconf.
|
||||
|
||||
Reference in new issue
Block a user