From ce684985d700b41fd55b33197ded7cb42fd92cca Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sat, 6 Jul 2024 23:01:54 -0500 Subject: [PATCH] Added examples. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 91e239a..e3250bb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # MiniNix -Tiny Nix for use when bootstrapping lower spec systems. \ No newline at end of file +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' +``` \ No newline at end of file