Roadmap items 1+2 plus the issues found testing on a Latitude 5410: - Ship the 10 most popular Nerd Fonts by default (iosevka swapped for mononoki: 1.1 GB vs 27 MB) and warn from nomarchy-theme-sync when a configured fonts.mono/fonts.ui family isn't installed (fc-match) — fontconfig substitutes silently otherwise. - hardware.enableRedistributableFirmware: installed systems shipped NO firmware blobs (wifi/SOF audio/BT) — nixos-generate-config only emits microcode lines referencing this flag, it never sets it. - Live ISO wifi: networking.wireless.enable = mkForce false killed NetworkManager's supplicant — since 26.05 the NM module drives its wifi backend THROUGH networking.wireless (dbusControlled). Devices vanished from nmtui with iwlwifi loaded and no rfkill block. - Hyprland 0.55: launch sessions via start-hyprland (watchdog; bare binary warns), add the new gesture keyword (workspace_swipe is gone — touchpads had no gestures at all), media keys via wpctl/bindel/bindl plus the missing mic/play/next/prev binds. - Offline theme switching: pin mustache-go + stdenv + the repo's own standalone HM generation (incl. home-files inputDerivation) into the ISO — stylix re-renders base16 templates per switch and an offline `apply` cascaded into building stdenv from source (1107 drvs). Verified with tools/vm/gap-analysis.py: 17 config drvs, zero fetches. - Stylix: track release-26.05 (kills the HM version-skew warning and the stale home-manager follows), lock updated. - Roadmap: swaync (no notification daemon ships today). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
89 lines
3.8 KiB
Nix
89 lines
3.8 KiB
Nix
# Live ISO host — boot the full Nomarchy desktop from a USB stick or QEMU
|
|
# without touching the disk. No installer yet (see roadmap); this target
|
|
# exists to test the distro end-to-end on real hardware.
|
|
{ lib, pkgs, username, nomarchySrc, ... }:
|
|
|
|
{
|
|
networking.hostName = "nomarchy-live";
|
|
|
|
isoImage.volumeID = lib.mkForce "NOMARCHY_LIVE";
|
|
isoImage.edition = lib.mkForce "live";
|
|
|
|
# Do NOT touch networking.wireless here: since NixOS 26.05 the
|
|
# NetworkManager module drives its wifi backend through it
|
|
# (wireless.enable = true + dbusControlled). Force-disabling it
|
|
# kills NM's supplicant — wifi devices vanish from nmtui even
|
|
# though the driver is loaded (seen on a Latitude 5410 / AX201).
|
|
|
|
# ── Live user: no password, straight into the desktop ──────────────
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
initialHashedPassword = "";
|
|
extraGroups = [ "wheel" "networkmanager" "video" "render" "audio" "input" ];
|
|
};
|
|
security.sudo.wheelNeedsPassword = false;
|
|
services.getty.autologinUser = lib.mkForce username;
|
|
|
|
# Boot straight into Hyprland once; logging out lands on tuigreet.
|
|
services.greetd.settings.initial_session = {
|
|
command = "start-hyprland";
|
|
user = username;
|
|
};
|
|
|
|
# ── Hardware breadth ────────────────────────────────────────────────
|
|
# Force-loading every GPU driver in the initrd (amdgpu+radeon+nouveau+
|
|
# i915) panics most machines — only one of them can claim the GPU and
|
|
# the others explode. `availableKernelModules` lets udev load just the
|
|
# one that matches; virtio_gpu covers QEMU (tools/test-live-iso.sh).
|
|
boot.initrd.availableKernelModules = [ "amdgpu" "radeon" "nouveau" "i915" "virtio_gpu" ];
|
|
services.qemuGuest.enable = lib.mkDefault true;
|
|
|
|
# ── The Nomarchy flake on board ─────────────────────────────────────
|
|
# Read-only copy in /etc (also pins the flake source into the ISO
|
|
# closure); seeded writable into the live home so theme switching —
|
|
# state write + `home-manager switch` — works exactly like on an
|
|
# installed system. $NOMARCHY_PATH already defaults to ~/.nomarchy.
|
|
environment.etc."nomarchy".source = nomarchySrc;
|
|
|
|
systemd.services.nomarchy-seed-flake = {
|
|
description = "Seed a writable Nomarchy flake into the live user's home";
|
|
wantedBy = [ "multi-user.target" ];
|
|
serviceConfig.Type = "oneshot";
|
|
script = ''
|
|
home=/home/${username}
|
|
if [ ! -e "$home/.nomarchy" ]; then
|
|
cp -r ${nomarchySrc} "$home/.nomarchy"
|
|
chmod -R u+w "$home/.nomarchy"
|
|
chown -R ${username}:users "$home/.nomarchy"
|
|
fi
|
|
'';
|
|
};
|
|
|
|
services.getty.helpLine = lib.mkForce ''
|
|
|
|
Welcome to the Nomarchy live environment.
|
|
|
|
The graphical session autologins as '${username}' (no password).
|
|
Theme switching: nomarchy-theme-sync apply <name> (or SUPER+T)
|
|
Wallpapers: nomarchy-theme-sync bg next (or SUPER+SHIFT+T)
|
|
Install to disk: nomarchy-install
|
|
The flake lives at ~/.nomarchy.
|
|
'';
|
|
|
|
# ── Live-session desktop tweaks ─────────────────────────────────────
|
|
home-manager.users.${username} = {
|
|
wayland.windowManager.hyprland.settings = {
|
|
# QEMU (and some panels) report a tiny "preferred" mode; ask for
|
|
# the highest resolution instead.
|
|
monitor = lib.mkForce [ ",highres,auto,1" ];
|
|
# Welcome toast once the session is up (concatenated onto the
|
|
# base exec-once list).
|
|
exec-once = [
|
|
"sh -c 'sleep 3; notify-send -a Nomarchy \"Welcome to Nomarchy\" \"SUPER+Return terminal · SUPER+T themes · install with nomarchy-install\"'"
|
|
];
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|