From 8c47716f9afbe163b9f0f1b5ec0dcc8296ccdb13 Mon Sep 17 00:00:00 2001 From: Bernardo Magri Date: Sun, 14 Jun 2026 20:42:36 +0100 Subject: [PATCH] chore(install): stop writing distro-default config into system.nix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit console.useXkbConfig and boot.initrd.systemd.enable are set distro-wide (lib.mkDefault true in modules/nixos/default.nix, since the LUKS-keymap fix), so the installer rewriting them in the generated system.nix was redundant. Drop them there and from the offline-pin test fixture in flake.nix — the nomarchy module still defaults them on, so the closure (and the pin set) is unchanged; verified the values still resolve true and `nix flake check` passes. Only the machine-specific xkb layout is written now. Adjusts the README keyboard-option wording to match. Co-Authored-By: Claude Opus 4.8 --- README.md | 2 +- flake.nix | 6 ------ pkgs/nomarchy-install/nomarchy-install.sh | 13 ++++++------- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 2848563..9526f48 100644 --- a/README.md +++ b/README.md @@ -186,7 +186,7 @@ examples: **[docs/OVERRIDES.md](docs/OVERRIDES.md)**. |---|---|---| | `nomarchy.stateFile` | — (required) | Path to your theme-state.json | | `nomarchy.terminal` | `"ghostty"` | Terminal for keybinds and `$TERMINAL` | -| `nomarchy.keyboard.layout` | `"us"` | XKB layout for the Hyprland session (installer writes it; pairs with xkb + `console.useXkbConfig` in system.nix) | +| `nomarchy.keyboard.layout` | `"us"` | XKB layout for the Hyprland session (installer writes the matching `services.xserver.xkb` in system.nix; the console + LUKS prompt follow via the distro default) | | `nomarchy.keyboard.variant` | `""` | XKB variant for the session | | `nomarchy.hyprland.enable` | `true` | Nomarchy's Hyprland config | | `nomarchy.waybar.enable` | `true` | Nomarchy's Waybar | diff --git a/flake.nix b/flake.nix index 825a676..0fb3fbc 100644 --- a/flake.nix +++ b/flake.nix @@ -252,12 +252,6 @@ ({ lib, ... }: { nomarchy.system.snapper.enable = true; nomarchy.system.greeter.autoLogin = username; - # The installer writes these (keyboard-everywhere - # incl. the LUKS prompt) — mirror them or the - # initrd/vconsole pins don't match an offline - # install's rebuild set. - console.useXkbConfig = true; - boot.initrd.systemd.enable = true; # nixos-generate-config keys microcode off # enableRedistributableFirmware (now on): the # real machine enables exactly one vendor — diff --git a/pkgs/nomarchy-install/nomarchy-install.sh b/pkgs/nomarchy-install/nomarchy-install.sh index 2d108ea..a1342ce 100644 --- a/pkgs/nomarchy-install/nomarchy-install.sh +++ b/pkgs/nomarchy-install/nomarchy-install.sh @@ -444,15 +444,14 @@ cat > "$FLAKE_DIR/system.nix" <