This repository stores some flake configurations that I usually use. Includes
master
,laptop
(long time no use),wsl
andorb-vm
.
$ nix flake show
git+file:///home/ph/nix?ref=refs/heads/master&rev=35c9b0787b0430f436f26e63cd37e44727a6c0c9
├───devShells
│ ├───aarch64-linux
│ │ └───default omitted (use '--all-systems' to show)
│ └───x86_64-linux
│ └───default: development environment 'nix-shell'
├───nixosConfigurations
│ ├───master: NixOS configuration
│ ├───orb-vm: NixOS configuration
│ └───wsl: NixOS configuration
└───overlays
└───default: Nixpkgs overlay
- Download the nixos iso file.
- Disk partition, create a root and boot partition and make format for them.
# like here
cfdisk /dev/nvme0n1 # create partitions
mkfs.fat -F32 /dev/nvme0n1p1
mkfs.ext4 /dev/nvme0n1p2
- Mount your partition on
/mnt
. - Generation nixos configurations in
/mnt
, execnixos-generate-config --root /mnt
, and then that will generate ahardware-configuration.nix
file andconfiguration.nix
. - Clone this repo to your local. Copy
hardware-configuration.nix
to${REPO_PATH}/hardware/
. - Change
cwd
to$REPO_PATH
and execnixos-install --root /mnt --flake .#master
.