No description
Find a file
randogoth 9f28569fef shell-init: record the first command of every shell in atuin
bash-preexec arms its DEBUG trap from __bp_interactive_mode at the end of
PROMPT_COMMAND, but its lazy installer runs mid-way through the first prompt
because zoxide and ghostty append their hooks after it. Those hooks disarm the
trap again, so the first interactive command of every session never reached
preexec and atuin silently dropped it.

Arm from PS0 instead, which is expanded once per interactive command before the
DEBUG trap and is therefore independent of PROMPT_COMMAND ordering.

Also guard the script against running twice: it is installed as both
loginShellInit and interactiveShellInit, and /etc/profile sources /etc/bashrc,
which registered starship's precmd/preexec hooks twice in every login shell.
2026-08-28 16:06:09 +03:00
docs docs: nixos-26.05 in adopt examples, document impermanence 2026-08-28 12:38:06 +03:00
hosts impernanence optional 2026-02-10 09:34:51 +02:00
modules impermanence: port btrfs rollback to systemd-stage-1 initrd 2026-08-28 12:14:53 +03:00
scripts shell-init: record the first command of every shell in atuin 2026-08-28 16:06:09 +03:00
templates NUR integration 2026-02-12 07:39:10 +02:00
.gitignore gitignore: ignore .claude/ (local assistant config) 2026-08-28 12:48:25 +03:00
AGENTS.md uppercase 2026-02-10 08:28:11 +02:00
flake.lock 26.05: source Lix from nixpkgs, fix disko btrfs label 2026-08-28 12:11:17 +03:00
flake.nix 26.05: source Lix from nixpkgs, fix disko btrfs label 2026-08-28 12:11:17 +03:00
impermanence.md impernanence optional 2026-02-10 09:34:51 +02:00
laptop.md docs: nixos-26.05 in adopt examples, document impermanence 2026-08-28 12:38:06 +03:00
README.md refactor: make nanuqsaurus module-based; keep btrfs install profile 2026-02-04 20:53:05 +02:00

under heavy development

Use a small local wrapper flake that imports this repos profile module and keeps your machines hardware-configuration.nix for mounts/boot:

  • docs/adopt.md

Fresh install (wipes disk, uses disko)

sudo nix --experimental-features "nix-command flakes" \
  run github:nix-community/disko/latest#disko-install -- \
  --mode format \
  --flake "git+https://codeberg.org/randogoth/nanuqsaurus.git#nanuqsaurus-btrfs" \
  --disk main /dev/disk/by-id/<your-disk> \
  --mount-point /mnt