Added examples.

This commit is contained in:
Joseph Hanson 2024-07-06 23:01:54 -05:00
parent 5c427104e1
commit ce684985d7
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -1,3 +1,11 @@
# MiniNix
Tiny Nix for use when bootstrapping lower spec systems.
```sh
# Format
curl https://git.hsn.dev/jahanson/MiniNix/raw/branch/main/disko-nixos.nix > disko.nix && sed -i 's|/dev/sda|/dev/nvme0n1|g' ./disko.nix && nix run --experimental-features "nix-command flakes" github:nix-community/disko -- --mode disko ./disko.nix
# Install
mkdir -p /mnt/etc/nixos && mkdir -p /mnt/nix/tmp && nix-shell -p git --run 'TMPDIR=/mnt/nix/tmp nixos-install --flake git+https://git.hsn.dev/jahanson/MiniNix#mini-x86 --no-write-lock-file'
```