Tier A removals — small, half-wired modules nobody had asked for: - makima (Copilot-key remapper): drop core/system/makima.nix, the features/apps/makima/ keyboard.toml, the nomarchy-restart-makima script, the `nomarchy.system.features.makima` option, the state-file binding, the import in core/system/default.nix, and the "Key Remapping" entry in nomarchy-menu. ~50 LoC + a service nobody asked for. - Typora theme dir (core/home/config/Typora/) — Typora is a paid tool Nomarchy doesn't even ship; the SUPER+SHIFT+W keybinding pointed at a binary that wasn't on PATH. - xournalpp settings (core/home/config/xournalpp/) — referenced /usr/share paths that don't exist on NixOS. - core/home/config/environment.d/fcitx.conf — manual env vars are redundant once fcitx5 routes through NixOS's i18n.inputMethod. Optionalization — three half-wired features now sit behind explicit toggles, all default off (except keyring which keeps its existing default-on): - nomarchy.system.inputMethod.enable: new core/system/input-method.nix uses NixOS's i18n.inputMethod with fcitx5 + mozc/chinese/table addons. Drops the Hyprland exec-once line — i18n.inputMethod handles autostart. - nomarchy.system.voxtype.enable: marker option for users who install voxtype out-of-band (it's not in nixpkgs). Today it just documents intent; the existing keybinding + waybar widget no-op gracefully. - nomarchy.apps.opencode.enable: gates the existing features/apps/opencode/default.nix xdg.configFile so the opencode config only deploys when the user opts in. Installer: - system.nix and home.nix templates now surface the new toggles in their "Optional Nomarchy modules" comment blocks. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
116 lines
3.2 KiB
Nix
116 lines
3.2 KiB
Nix
{ lib, pkgs, ... }:
|
|
|
|
{
|
|
options.nomarchy = {
|
|
toggles = {
|
|
suspend = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "Whether to show suspend in system menu.";
|
|
};
|
|
screensaver = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "Whether the screensaver is enabled.";
|
|
};
|
|
idle = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "Whether the idle lock is enabled.";
|
|
};
|
|
nightlight = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "Whether the nightlight is enabled.";
|
|
};
|
|
waybar = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
description = "Whether the top bar is enabled.";
|
|
};
|
|
skipVsCodeTheme = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "Whether to skip theme changes in VSCode.";
|
|
};
|
|
};
|
|
nightlightTemperature = lib.mkOption {
|
|
type = lib.types.int;
|
|
default = 4000;
|
|
description = "Temperature for the nightlight.";
|
|
};
|
|
theme = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "summer-night";
|
|
description = "System theme name.";
|
|
};
|
|
wallpaper = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "";
|
|
description = "System wallpaper path.";
|
|
};
|
|
hyprland = {
|
|
gaps_in = lib.mkOption {
|
|
type = lib.types.int;
|
|
default = 5;
|
|
description = "Inner gaps for Hyprland.";
|
|
};
|
|
gaps_out = lib.mkOption {
|
|
type = lib.types.int;
|
|
default = 10;
|
|
description = "Outer gaps for Hyprland.";
|
|
};
|
|
border_size = lib.mkOption {
|
|
type = lib.types.int;
|
|
default = 2;
|
|
description = "Border size for Hyprland.";
|
|
};
|
|
};
|
|
fonts = {
|
|
monospace = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "JetBrainsMono Nerd Font";
|
|
description = "System monospace font.";
|
|
};
|
|
};
|
|
iconsTheme = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "Yaru-blue";
|
|
description = "System icon theme name.";
|
|
};
|
|
isLightMode = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = "Whether the current theme is light mode.";
|
|
};
|
|
cursor = {
|
|
name = lib.mkOption {
|
|
type = lib.types.str;
|
|
default = "Bibata-Modern-Ice";
|
|
description = "Mouse cursor theme name.";
|
|
};
|
|
package = lib.mkOption {
|
|
type = lib.types.package;
|
|
default = pkgs.bibata-cursors;
|
|
description = "Package providing the cursor theme.";
|
|
};
|
|
};
|
|
configOverrides = lib.mkOption {
|
|
type = lib.types.nullOr lib.types.path;
|
|
default = null;
|
|
description = "Path to a directory containing configuration overrides.";
|
|
};
|
|
|
|
apps = {
|
|
opencode = {
|
|
enable = lib.mkEnableOption ''
|
|
opencode AI coding CLI integration. When on, deploys
|
|
~/.config/opencode/opencode.json. The `opencode` package itself
|
|
is not installed by Nomarchy — add it to your home.nix if you
|
|
want it on PATH.
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|