feat: v1 release branch — generated flakes and template track ?ref=v1
Installed machines and the downstream template now resolve nomarchy from git+https://git.bemagri.xyz/bernardo/nomarchy.git?ref=v1 (the lock's original node carries the ref too), so `nix flake update` follows the release branch instead of the forge's default branch. README quickstart points at the real forge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -111,7 +111,7 @@ Nomarchy is consumed as a flake input — you never fork or edit this repo:
|
||||
|
||||
```sh
|
||||
mkdir my-machine && cd my-machine
|
||||
nix flake init -t github:YOUR-USER/nomarchy
|
||||
nix flake init -t "git+https://git.bemagri.xyz/bernardo/nomarchy.git?ref=v1"
|
||||
```
|
||||
|
||||
You own two files day-to-day: `system.nix` and `home.nix` (plus
|
||||
|
||||
@@ -45,11 +45,13 @@
|
||||
(nixpkgs.lib.concatStringsSep "\n"
|
||||
(builtins.attrNames nixos-hardware.nixosModules));
|
||||
nixpkgsPath = nixpkgs.outPath;
|
||||
flakeUrl = "git+${gitUrl}";
|
||||
# v1 is the release branch: installed machines track it on
|
||||
# `nix flake update` instead of the forge's default branch.
|
||||
flakeUrl = "git+${gitUrl}?ref=v1";
|
||||
# Future updates re-resolve from the forge (original); the install
|
||||
# itself resolves from the ISO store (locked = path) — fully
|
||||
# offline, even from a dirty-tree ISO.
|
||||
originalNode = { type = "git"; url = gitUrl; };
|
||||
originalNode = { type = "git"; url = gitUrl; ref = "v1"; };
|
||||
lockedNode = {
|
||||
type = "path";
|
||||
path = self.outPath;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# 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
|
||||
# system.nix and home.nix. v1 is the release branch.
|
||||
inputs.nomarchy.url = "git+https://git.bemagri.xyz/bernardo/nomarchy.git?ref=v1";
|
||||
|
||||
outputs = { nomarchy, ... }:
|
||||
nomarchy.lib.mkFlake {
|
||||
|
||||
Reference in New Issue
Block a user