- Fix QEMU syntax and root filesystem conflicts in vm-guest.nix. - Repair numerous broken relative paths and imports across the codebase. - Set 'summer-night' as the default distro theme with full branding integration. - Implement declarative system-wide font installation including the 'nomarchy' font. - Fix Waybar startup by dynamically generating theme-aware CSS. - Restore Hyprland keybindings (Super+Return, Super+Space) and wallpaper loading. - Add missing scripts: nomarchy-launch-walker, nomarchy-toggle-waybar, nomarchy-refresh-config. - Enable UWSM and correctly disable conflicting Hyprland systemd services.
31 lines
859 B
Nix
31 lines
859 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
let
|
|
nomarchyLib = import ../../lib { inherit lib; };
|
|
activeThemeName = config.nomarchy.system.theme;
|
|
currentPalette = nomarchyLib.getPalette activeThemeName;
|
|
|
|
# Hex color for browser theme (base00 is background)
|
|
themeColor = "#${currentPalette.base00}";
|
|
|
|
# Detect light mode from theme name or palette
|
|
isLightTheme = nomarchyLib.isThemeLightMode {
|
|
themeName = activeThemeName;
|
|
assetsPath = ../../themes/palettes;
|
|
};
|
|
|
|
browserPolicy = {
|
|
BrowserThemeColor = themeColor;
|
|
BrowserColorScheme = if isLightTheme then "light" else "dark";
|
|
};
|
|
in
|
|
{
|
|
# Chromium policies
|
|
programs.chromium.extraOpts = lib.mkDefault browserPolicy;
|
|
|
|
# Brave browser policies via managed policy file
|
|
environment.etc."brave/policies/managed/nomarchy.json".text = lib.mkDefault (
|
|
builtins.toJSON browserPolicy
|
|
);
|
|
}
|