- Consolidate all configuration toggles (suspend, idle, waybar, etc.) into ~/.config/home-manager/state.json - Introduce nomarchy.toggles and nomarchy.hyprland options in Nix - Inject toggle states into all bin/ scripts via environment variables - Update toggle scripts to mutate JSON and trigger background rebuilds - Add a migration script to transition legacy flag files to the new format
69 lines
1.8 KiB
Nix
69 lines
1.8 KiB
Nix
{ config, pkgs, inputs, lib, ... }:
|
|
|
|
let
|
|
# Re-use our state-based logic
|
|
palettes = import ../../themes/nomarchy-palettes.nix;
|
|
|
|
activeThemeName = config.nomarchy.theme;
|
|
activeWallpaper = if config.nomarchy.wallpaper != "" then
|
|
config.nomarchy.wallpaper
|
|
else "${../../themes/catppuccin/backgrounds/1-totoro.png}"; # Fallback
|
|
|
|
# Map nix-colors palette to a format Stylix expects (attrset of hex strings)
|
|
currentPalette = (palettes.${activeThemeName} or palettes.nord).palette;
|
|
in
|
|
{
|
|
imports = [ inputs.stylix.homeModules.stylix ];
|
|
|
|
stylix = {
|
|
enable = true;
|
|
enableReleaseChecks = false;
|
|
image = activeWallpaper;
|
|
base16Scheme = currentPalette;
|
|
|
|
# Force dark/light mode based on theme name if possible, or just default to dark
|
|
polarity = if lib.strings.hasInfix "light" activeThemeName then "light" else "dark";
|
|
|
|
cursor = {
|
|
package = pkgs.bibata-cursors;
|
|
name = "Bibata-Modern-Ice";
|
|
size = 24;
|
|
};
|
|
|
|
fonts = {
|
|
monospace = {
|
|
package = pkgs.nerd-fonts.jetbrains-mono;
|
|
name = config.nomarchy.fonts.monospace;
|
|
};
|
|
sansSerif = {
|
|
package = pkgs.dejavu_fonts;
|
|
name = "DejaVu Sans";
|
|
};
|
|
serif = {
|
|
package = pkgs.dejavu_fonts;
|
|
name = "DejaVu Serif";
|
|
};
|
|
emoji = {
|
|
package = pkgs.noto-fonts-color-emoji;
|
|
name = "Noto Color Emoji";
|
|
};
|
|
sizes = {
|
|
applications = 11;
|
|
terminal = 11;
|
|
desktop = 11;
|
|
popups = 11;
|
|
};
|
|
};
|
|
|
|
# Enable theming for specific targets
|
|
targets = {
|
|
hyprland.enable = false; # We keep our custom hyprland config for borders/rules
|
|
waybar.enable = false; # We keep our custom waybar CSS
|
|
alacritty.enable = true;
|
|
kitty.enable = true;
|
|
gtk.enable = true;
|
|
gnome.enable = true;
|
|
};
|
|
};
|
|
}
|