nixos-config/hosts/ni
Gabriel Arazas 2e7cdeacf3
hosts: remove host path prefix for sops keys
It is more explicit and elegant but more of a pain to manage especially
with the new function. It was structured that way for other hosts'
secrets but it isn't really used in practice. We could just enforce a
convention such as a `hosts` prefix to contain those secrets.
2023-07-05 13:11:47 +08:00
..
files hosts: add Wireguard services to related peers 2023-01-17 21:34:54 +08:00
modules hosts: remove host path prefix for sops keys 2023-07-05 13:11:47 +08:00
secrets hosts: add Wireguard services to related peers 2023-01-17 21:34:54 +08:00
default.nix hosts: remove host path prefix for sops keys 2023-07-05 13:11:47 +08:00
disko.nix hosts/ni: add disko device config 2023-06-30 13:38:22 +08:00
hardware-configuration.nix hosts/ni: add fstrim service 2023-07-02 19:24:56 +08:00
README.adoc docs: update 2022-11-29 15:58:33 +08:00

My desktop workstation. Pretty nice, pretty handy, it is your basic desktop NixOS installation.

I know partitioning is not your favorite part so heres one way to prepare the laptop with this config.

# Preparing the partitions.
parted /dev/sda -- mklabel gpt
parted /dev/sda -- mkpart primary 512MiB -4GB
parted /dev/sda -- mkpart primary linux-swap -4GB 100%
parted /dev/sda -- mkpart ESP fat32 1MiB 512MiB
parted /dev/sda -- set 3 esp on

# Setting up the filesystems.
mkfs.ext4 -L nixos /dev/sda1
mkswap -L swap /dev/sda2
mkfs.fat -F 32 -n boot /dev/sda3

# Mount the partitions before installation.
mount /dev/disk/by-label/nixos /mnt
mkdir -p /mnt/boot
mount /dev/disk/by-label/boot /mnt/boot
swapon /dev/disk/by-label/swap