Valentin Brandl e0474bd7cb
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/f3111f62a23451114433888902a55cf0692b408d?narHash=sha256-T1e5oceypZu3Q8vzICjv1X/sGs9XfJRMW5OuXHgpB3c%3D' (2024-11-24)
  → 'github:nix-community/home-manager/e38d3dd1d355a003cc63e8fe6ff66ef2257509ed?narHash=sha256-ZD%2Bh1fwvZs%2BXvg46lzTWveAqyDe18h9m7wZnTIJfFZ4%3D' (2024-12-06)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/62c435d93bf046a5396f3016472e8f7c8e2aed65?narHash=sha256-F7thesZPvAMSwjRu0K8uFshTk3ZZSNAsXTIFvXBT%2B34%3D' (2024-11-30)
  → 'github:nixos/nixpkgs/b681065d0919f7eb5309a93cea2cfa84dec9aa88?narHash=sha256-eq51hyiaIwtWo19fPEeE0Zr2s83DYMKJoukNLgGGpek%3D' (2024-12-03)
• Updated input 'nixpkgs-unstable':
    'github:nixos/nixpkgs/970e93b9f82e2a0f3675757eb0bfc73297cc6370?narHash=sha256-jNRNr49UiuIwaarqijgdTR2qLPifxsVhlJrKzQ8XUIE%3D' (2024-11-28)
  → 'github:nixos/nixpkgs/d0797a04b81caeae77bcff10a9dde78bc17f5661?narHash=sha256-kEsTJTUQfQFIJOcLYFt/RvNxIK653ZkTBIs4DG%2BcBns%3D' (2024-12-05)
2024-12-06 14:49:06 +01:00
2021-12-29 13:06:12 +01:00
2024-12-01 16:13:46 +01:00
2024-12-01 16:09:29 +01:00
2022-02-15 13:33:28 +01:00
2022-12-18 11:57:03 +01:00
2022-02-15 15:45:24 +01:00
2024-12-06 14:49:06 +01:00
2024-11-23 14:31:12 +01:00
2022-12-18 11:56:25 +01:00
2024-04-18 16:50:45 +02:00
2020-05-30 14:07:02 +02:00

NixOS Configuration

Now using Flakes \o/

Updating Channels/the Lockfile

nix flake lock
nix flake update

Installing/Updating the System

sudo nixos-rebuild switch --flake <path-to-repo>#<hostname>
sudo nixos-rebuild switch --flake .#w1n5t0n

Mail Setup

secret-tool store --label 'foo@example.com' email 'foo@example.com'

Encrypted Btrfs Setup

  • cryptsetup luksFormat --format=luks1 /...
  • cryptsetup luksOpen /... system
  • mkfs.btrfs /dev/mapper/system
  • mount /dev/mapper/system /mnt
  • btrfs subvolume create /mnt/root
  • btrfs subvolume create /mnt/home
  • btrfs subvolume create /mnt/nix
  • btrfs subvolume create /mnt/swap
subvolume mount options
home compress=zstd
swap compress=zstd,noatime
root compress=zstd
nix compress=zstd,noatime
  • /boot/efi as vfat TODO: partitioning command
  • TODO: create swap
  • mount subvolumes
  • `nixos-generate-config --root /mnt
  • add mount options in hardware-configuration.nix / create matching configuration in ./machines
  • TODO: config for luks, bootloader, ...
  • For snapper: create .snapshots subvolume in each subvolume to be backed up
Description
Configuration of my nixos systems
Readme 537 KiB
Languages
Nix 92.2%
Lua 5.3%
Vim Script 2.5%