Tiny Nix for use when bootstrapping lower spec systems.
This repository has been archived on 2024-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2024-07-07 09:32:56 -05:00
.gitignore Initial commit 2024-07-06 22:30:50 -05:00
common.nix Remove unused. 2024-07-07 09:32:56 -05:00
configuration-grub.nix Remove unused. 2024-07-07 09:32:56 -05:00
configuration-systemd.nix Add ssh. 2024-07-07 09:19:37 -05:00
disko-nixos.nix MiniNix 2024-07-06 22:38:39 -05:00
flake.lock MiniNix 2024-07-06 22:38:39 -05:00
flake.nix Add common setting, ssh, pkgs, etc. 2024-07-07 09:31:48 -05:00
README.md grub/systemd 2024-07-07 02:57:35 -05:00

MiniNix

Tiny Nix for use when bootstrapping lower spec systems.

# 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

## grub
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-grub --no-write-lock-file'

## systemd
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-systemd --no-write-lock-file'