mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-16 06:19:11 +00:00
Justfile: add nixos-install step
And update README.
This commit is contained in:
parent
fa6f1354cd
commit
855e552f99
4
Justfile
4
Justfile
@ -10,6 +10,10 @@ update:
|
|||||||
host-build HOST *ARGS:
|
host-build HOST *ARGS:
|
||||||
nixos-rebuild --flake '.#{{HOST}}-{{arch()}}-{{os()}}' {{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.
|
# Update a package with nix-update.
|
||||||
pkg-update PKG *ARGS:
|
pkg-update PKG *ARGS:
|
||||||
nix-update -f pkgs {{PKG}} {{ARGS}}
|
nix-update -f pkgs {{PKG}} {{ARGS}}
|
||||||
|
12
README.adoc
12
README.adoc
@ -82,6 +82,12 @@ nix-shell -p disko git
|
|||||||
# Run the following commands as root.
|
# Run the following commands as root.
|
||||||
disko --mode disko [--arg disk "/dev/sda"] --flake {canonical_flake_url}#external-hdd
|
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
|
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.
|
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.
|
# Also run these as root.
|
||||||
disko --mode disko [--arg disk "/dev/nvme0n1"] --flake {canonical_flake_url}#ni-x86_64-linux
|
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
|
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à!
|
And voilà!
|
||||||
|
Loading…
Reference in New Issue
Block a user