Skip to content

hatch01/flake

Repository files navigation

install

formatting

Get the format config:

cd /tmp
curl https://raw.githubusercontent.com/hatch01/flake/master/disk.nix -o disk.nix

Get the disk id we want to format

lsblk

The output should look like this:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0   1,8T  0 disk

edit the device value according to your disk.

vi /tmp/disk.nix

set the disk encryption password

echo -n "password" > /tmp/secret.key

Run partitionment:

sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /tmp/disk.nix

Install

su root
mkdir -p /mnt/etc
cd /mnt/etc
git clone https://github.com/hatch01/flake nixos
cd nixos

maybe edit the disk name in flake .nix

You need to generate keys for secure boot:

sudo sbctl create-keys

then install

nixos-install --flake .#tulipe

About

My personnal nix config

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •