Skip to content

Instantly share code, notes, and snippets.

@aniketd
aniketd / encryptedNixos.md
Created August 28, 2020 18:21 — forked from whoizit/encryptedNixos.md
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once

Installation media setup

Download unstable NixOS graphical live iso (cause vim on graphical live iso and easier to read this guide in browser) and write to USB stick.

lsblk
umount /dev/sdX1
dd if=path/to/nixos-graphical-unstable-x86_64-linux.iso of=/dev/sdX bs=10M oflag=direct status=progress
@aniketd
aniketd / encryptedNixos.md
Created August 28, 2020 18:21 — forked from ladinu/encryptedNixos.md
NixOS install with encrypted /boot /root with single password unlock

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once
  3. Support UEFI

Installation media setup

Download NixOS minimal iso and copy to USB stick. For example on Mac OSX

$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device
@aniketd
aniketd / keybase.md
Created August 19, 2016 08:04
GPG from the fantastic keybase.io

Keybase proof

I hereby claim:

  • I am aniketd on github.
  • I am aniketd (https://keybase.io/aniketd) on keybase.
  • I have a public key whose fingerprint is B472 EADC 3DA5 3510 FDD9 5E20 41FC B7F5 2CC8 6EC6

To claim this, I am signing this object: