1e7fb76f4530

hello cheatsheet, NINA tagline, friendly farewell; flake+module descriptions updated

time
2026-06-04 16:28 UTC · 4 months ago
machine
koh2
agent
claude-sonnet-4-6
session
install script and kepr setup
parent
cc69486cead8
4 files flake.nix+2 −2install.sh+14 −9nixos-module.nix+1 −1src/output.zig+12 −0
flake.nix+2 −2
@@ -1,5 +1,5 @@11 {2-  description = "nina — the nix helper";2+  description = "nina — NixOS Intuitive Navigation Assistant";33 44   inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";55 @@ -27,7 +27,7 @@2727               install -Dm755 zig-out/bin/nina $out/bin/nina2828             '';2929             meta = with nixpkgs.lib; {30-              description = "The nix helper — manage your NixOS system from the command line";30+              description = "NixOS Intuitive Navigation Assistant";3131               mainProgram = "nina";3232               platforms = platforms.unix;3333               license = licenses.mit;

view file

install.sh+14 −9
@@ -50,7 +50,7 @@5050   | | | || || | | || (_| |5151   |_| |_||_||_| |_| \__,_|5252 53-  the nix helper  ·  kepr.uk/nina53+  NixOS Intuitive Navigation Assistant  ·  kepr.uk/nina5454 5555 BANNER5656 }@@ -274,6 +274,15 @@274274   esac275275 }276276 277+# ── closing message ──────────────────────────────────────────────────────────278+279+farewell() {280+  printf '\n'281+  printf '  thank you!! running nina update occasionally will keep me in tip top shape.\n'282+  printf '  get started by running nina hello\n'283+  printf '\n'284+}285+277286 # ── main ──────────────────────────────────────────────────────────────────────278287 279288 banner@@ -282,28 +291,24 @@282291   say "NixOS detected"283292   if nixos_profile_install; then284293     generate_nixos_module285-    blank286-    say "to update nina: nina update"294+    farewell287295     exit 0288296   fi289297   nixos_shell_build290298   generate_nixos_module291299   check_path292-  blank293-  say "to update nina: nina update"300+  farewell294301   exit 0295302 fi296303 297304 # macOS / generic Linux: download binary, fall back to source build298305 if install_binary; then299306   check_path300-  blank301-  say "to update nina: nina update"307+  farewell302308   exit 0303309 fi304310 305311 say "no pre-built binary for ${platform} — falling back to source build"306312 build_from_source307313 check_path308-blank309-say "to update nina: nina update"314+farewell

view file

nixos-module.nix+1 −1
@@ -23,7 +23,7 @@2323     '';2424     installPhase = "install -Dm755 zig-out/bin/nina $out/bin/nina";2525     meta = {26-      description = "The nix helper — manage your NixOS system from the command line";26+      description = "NixOS Intuitive Navigation Assistant";2727       mainProgram = "nina";2828     };2929   };

view file

src/output.zig+12 −0
@@ -519,6 +519,18 @@519519         p("   {s}{s}{s}   {s}   {s}\n", .{ c(DIM), m.name, c(RESET), kind, detail });520520     }521521     p("\n", .{});522+    const quick = [_][2][]const u8{523+        .{ "apply",         "rebuild and switch" },524+        .{ "search <q>",    "find packages" },525+        .{ "install <pkg>", "add to profile or system" },526+        .{ "status",        "machine health" },527+        .{ "back",          "roll back one generation" },528+        .{ "update",        "refresh channels" },529+    };530+    for (quick) |cmd| {531+        p("   {s:<16}  {s}{s}{s}\n", .{ cmd[0], c(DIM), cmd[1], c(RESET) });532+    }533+    p("\n", .{});522534 }523535 524536 // --- Help ---

view file