Downstream users now own only system.nix and home.nix; their flake.nix is generated once from the template and never hand-edited. mkFlake (lib.nix) wires both layers and maps hardwareProfile = "<name>" to nixos-hardware modules (new input, pinned here, nixpkgs follows ours; unknown names fail with did-you-mean suggestions). Flake checks evaluate the template through mkFlake — including a real profile — so drift fails `nix flake check`. Also from the live-VM testing session: install the home-manager CLI in the live ISO and pin flake inputs transitively (offline theme switching needs stylix's own inputs too), plus swww→awww doc updates. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
21 lines
742 B
Nix
21 lines
742 B
Nix
{
|
|
description = "My Nomarchy machine";
|
|
|
|
# The only input. nixpkgs, home-manager etc. come pinned through it —
|
|
# tested together upstream. This file is written once (by you or the
|
|
# installer) and never hand-edited afterwards; your machine lives in
|
|
# system.nix and home.nix.
|
|
inputs.nomarchy.url = "github:YOUR-USER/nomarchy"; # <- the distro repo
|
|
|
|
outputs = { nomarchy, ... }:
|
|
nomarchy.lib.mkFlake {
|
|
src = ./.;
|
|
username = "me"; # <- your login name
|
|
|
|
# Optional: a nixos-hardware module name for your machine, e.g.
|
|
# hardwareProfile = "framework-13-7040-amd";
|
|
# Names: https://github.com/NixOS/nixos-hardware
|
|
# (the future installer fills this in automatically from DMI data)
|
|
};
|
|
}
|