- Encrypt everthing including /boot and /root
- Enter password once
- Support UEFI
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
Here are my working notes on getting a system up and running.
WARNING: You can run into a hidden problem that will prevent a correct partition setup and /etc/nixos/configuration.nix
from working: if you are setting up a UEFI system, then you need to make sure you boot into the NixOS installation from the UEFI partition of the bootable media. You may have to enter your BIOS boot selection menu to verify this. For example, if you setup a NixOS installer image on a flash drive, your BIOS menu may display several boot options from that flash drive: choose the one explicitly labeled with “UEFI”.
I used these resources:
#!/usr/bin/env bash | |
# NixOS install with encrypted root and swap | |
# | |
# sda | |
# ├─sda1 BOOT | |
# └─sda2 LINUX (LUKS CONTAINER) | |
# └─cryptroot LUKS MAPPER | |
# └─cryptroot1 SWAP | |
# └─cryptroot2 ZFS |
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
... | |
{ | |
services.samba = { | |
enable = true; | |
syncPasswordsByPam = true; | |
# You will still need to set up the user accounts to begin with: | |
# $ sudo smbpasswd -a yourusername |
Here are my working notes on getting a system up and running.
WARNING: You can run into a hidden problem that will prevent a correct partition setup and /etc/nixos/configuration.nix
from working: if you are setting up a UEFI system, then you need to make sure you boot into the NixOS installation from the UEFI partition of the bootable media. You may have to enter your BIOS boot selection menu to verify this. For example, if you setup a NixOS installer image on a flash drive, your BIOS menu may display several boot options from that flash drive: choose the one explicitly labeled with “UEFI”.
I used these resources:
#!/usr/bin/env bash | |
# | |
# NixOS install script synthesized from: | |
# | |
# - Erase Your Darlings (https://grahamc.com/blog/erase-your-darlings) | |
# - ZFS Datasets for NixOS (https://grahamc.com/blog/nixos-on-zfs) | |
# - NixOS Manual (https://nixos.org/nixos/manual/) | |
# | |
# It expects the name of the block device (e.g. 'sda') to partition |
#!/usr/bin/env bash | |
# NixOS install with encrypted root and swap | |
# | |
# sda | |
# ├─sda1 BOOT | |
# └─sda2 LINUX (LUKS CONTAINER) | |
# └─cryptroot LUKS MAPPER | |
# └─cryptroot1 SWAP | |
# └─cryptroot2 ZFS |
zoomAutenticationTool
can be used to escalat{ config, lib, pkgs, ... }: | |
let | |
domain = "puerti.co"; | |
waylandOverlay = (import (builtins.fetchTarball ({ | |
url = "https://github.com/piensa/wayner/archive/1e62268.tar.gz"; | |
sha256 = "07hzhdc9ic3sk4ivd0g3lx2f7jnr3wkrrr884hf5b1n7adzglh50"; | |
}))); |