rofi 2.0 landed in nixpkgs 26.05 with native Wayland (mainline upstreamed the lbonn rofi-wayland fork — `wayland enabled`), so the original reason to prefer fuzzel (rofi being X11-only / needing a community fork) is gone. rofi's `.rasi` is far more expressive than fuzzel's flat INI, which lets the launcher be a proper themed hero surface and revives the legacy per-theme launcher designs. - modules/home/rofi.nix replaces fuzzel.nix: per-element theme generated from theme-state.json (accent border, highlighted selection, rounded inputbar) via lib.formats.rasi.mkLiteral; themes/<slug>/rofi.rasi whole-swap; the nomarchy-menu dispatcher re-pointed to `rofi -dmenu` (power/theme/clipboard/calc with -mesg/files/web + root picker). - SUPER+D is now `rofi -show drun`; the menu binds are unchanged. - nomarchy.fuzzel.enable → nomarchy.rofi.enable; fuzzel dropped from home.packages. Pango handles nf-glyph fallback (no explicit font list needed as fuzzel's fcft did). show-icons off until an icon theme ships. Verified: flake check green, HM generation builds, the generated theme.rasi parses under `rofi -dump-theme`, Hyprland config verifies. Not verified: rofi's on-screen rendering needs a real session. Docs: README menu/override/roadmap sections and the module tree updated; the per-theme launcher roadmap item now points at porting the legacy rofi.rasi designs (the whole-swap mechanism is in place). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
88 lines
3.9 KiB
Nix
88 lines
3.9 KiB
Nix
# User-level `nomarchy.*` options — the full surface downstream users
|
|
# configure in their home.nix. Kept small on purpose.
|
|
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
options.nomarchy = {
|
|
# ── Required ───────────────────────────────────────────────────
|
|
stateFile = lib.mkOption {
|
|
type = lib.types.path;
|
|
example = lib.literalExpression "./theme-state.json";
|
|
description = ''
|
|
Path to theme-state.json, the single source of truth for all UI
|
|
configuration. Must live inside your flake (so evaluation stays
|
|
pure) and be git-tracked. nomarchy-theme-sync writes to the
|
|
on-disk copy; rebuilds bake it into the generation.
|
|
'';
|
|
};
|
|
|
|
# ── Preferences ────────────────────────────────────────────────
|
|
terminal = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "ghostty";
|
|
description = "Terminal emulator command, used by keybinds and $TERMINAL.";
|
|
};
|
|
|
|
keyboard.layout = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "us";
|
|
example = "de";
|
|
description = ''
|
|
XKB layout for the Hyprland session. The console (and the LUKS
|
|
passphrase prompt) take theirs from the system side — the
|
|
installer writes services.xserver.xkb + console.useXkbConfig
|
|
into system.nix with the same value.
|
|
'';
|
|
};
|
|
|
|
keyboard.variant = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "";
|
|
example = "nodeadkeys";
|
|
description = "XKB variant for the Hyprland session.";
|
|
};
|
|
|
|
package = lib.mkOption {
|
|
type = lib.types.package;
|
|
default = pkgs.nomarchy-theme-sync;
|
|
defaultText = lib.literalExpression "pkgs.nomarchy-theme-sync";
|
|
description = "The nomarchy-theme-sync package (provided by overlays.default).";
|
|
};
|
|
|
|
themesDir = lib.mkOption {
|
|
type = lib.types.path;
|
|
default = ../../themes;
|
|
defaultText = lib.literalExpression "\"\${nomarchy}/themes\"";
|
|
description = ''
|
|
Theme presets/assets directory probed at eval time for per-theme
|
|
app overrides (<slug>/waybar.css, <slug>/waybar.jsonc). Point it
|
|
at your own directory to ship custom layouts downstream.
|
|
'';
|
|
};
|
|
|
|
# ── Component toggles ──────────────────────────────────────────
|
|
hyprland.enable = lib.mkEnableOption "Nomarchy's Hyprland configuration" // { default = true; };
|
|
waybar.enable = lib.mkEnableOption "Nomarchy's Waybar configuration" // { default = true; };
|
|
rofi.enable = lib.mkEnableOption "Nomarchy's themed rofi launcher + the nomarchy-menu dispatcher" // { default = true; };
|
|
swaync.enable = lib.mkEnableOption "swaync notifications, themed from the state file" // { default = true; };
|
|
idle.enable = lib.mkEnableOption "hyprlock + hypridle (idle lock, display off, suspend)" // { default = true; };
|
|
yazi.enable = lib.mkEnableOption "the yazi TUI file manager, themed with a curated plugin set" // { default = true; };
|
|
ghostty.enable = lib.mkEnableOption "Nomarchy's Ghostty configuration" // { default = true; };
|
|
btop.enable = lib.mkEnableOption "btop with the per-theme nomarchy theme" // { default = true; };
|
|
stylix.enable = lib.mkEnableOption "Stylix theming for the long tail of apps (GTK, Qt, cursors)" // { default = true; };
|
|
|
|
# ── Computed (read-only) ───────────────────────────────────────
|
|
theme = lib.mkOption {
|
|
type = lib.types.attrs;
|
|
readOnly = true;
|
|
description = "The parsed theme state (stateFile merged over defaults).";
|
|
};
|
|
|
|
lib = lib.mkOption {
|
|
type = lib.types.attrs;
|
|
readOnly = true;
|
|
description = "Color-format helpers shared by the theme consumers.";
|
|
};
|
|
};
|
|
}
|