From 855e552f99fcbc8ef8ba0f23ec0b5a79ea3e9b91 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 15 Mar 2025 19:39:26 +0800 Subject: [PATCH] Justfile: add nixos-install step And update README. --- Justfile | 4 ++++ README.adoc | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/Justfile b/Justfile index 72ba8a85..2af7e914 100644 --- a/Justfile +++ b/Justfile @@ -10,6 +10,10 @@ update: host-build HOST *ARGS: nixos-rebuild --flake '.#{{HOST}}-{{arch()}}-{{os()}}' {{ARGS}} +# Small wrapper for installing NixOS systems. +nixos-install HOST *ARGS: + disko-install --flake '.#{{HOST}}-{{arch()}}-{{os()}}' {{ARGS}} + # Update a package with nix-update. pkg-update PKG *ARGS: nix-update -f pkgs {{PKG}} {{ARGS}} diff --git a/README.adoc b/README.adoc index 05e260f4..dc0ca7fb 100644 --- a/README.adoc +++ b/README.adoc @@ -82,6 +82,12 @@ nix-shell -p disko git # Run the following commands as root. disko --mode disko [--arg disk "/dev/sda"] --flake {canonical_flake_url}#external-hdd nixos-install --no-root-passwd --root /mnt --flake {canonical_flake_url}#graphical-installer-x86_64-linux + +# As an alternative, you can also run the following command. +disko-install --mode disko --flake {canonical_flake_url}#graphical-installer-x86_64-linux + +# Or this... +just nixos-install graphical-installer ---- Also, the installer configuration also includes Guix which means it's also a Guix System installer. @@ -96,6 +102,12 @@ NO ADDITIONAL `mount` COMMANDS NEEDED! # Also run these as root. disko --mode disko [--arg disk "/dev/nvme0n1"] --flake {canonical_flake_url}#ni-x86_64-linux nixos-install --flake {canonical_flake_url}#ni-x86_64-linux + +# Or just run this. +disko-install --mode disko --flake {canonical_flake_url}#ni-x86_64-linux + +# Or this... +just nixos-install ni ---- And voilĂ !