Dave Gallant 351cf08a7d nix flake update: 2026-01-17 21:02:58 UTC
unpacking 'https://flakehub.com/f/DeterminateSystems/determinate/%2A' into the Git cache...
unpacking 'github:davegallant/vpngate/9e9992e643e44896a6c7f8070e968f0d85e4cea4' into the Git cache...
• Updated input 'home-manager':
    'github:nix-community/home-manager/82fb7dedaad83e5e279127a38ef410bcfac6d77c?narHash=sha256-MOU5YdVu4DVwuT5ztXgQpPuRRBjSjUGIdUzOQr9iQOY%3D' (2026-01-08)
  → 'github:nix-community/home-manager/2a63d0e9d2c72ac4d4150ebb242cf8d86f488c8c?narHash=sha256-vRV1dWJOCpCal3PRr86wE2WTOMfAhTu6G7bSvOsryUo%3D' (2026-01-16)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/2c3e5ec5df46d3aeee2a1da0bfedd74e21f4bf3a?narHash=sha256-yBXJLE6WCtrGo7LKiB6NOt6nisBEEkguC/lq/rP3zRQ%3D' (2026-01-13)
  → 'github:NixOS/nixpkgs/72ac591e737060deab2b86d6952babd1f896d7c5?narHash=sha256-6YwHV1cjv6arXdF/PQc365h1j%2BQje3Pydk501Rm4Q%2B4%3D' (2026-01-17)
• Updated input 'nixpkgs-master':
    'github:NixOS/nixpkgs/64c6c70011813a35bb907cf1079441372aabb13e?narHash=sha256-E4aYb%2B/lx45T/3FcdUmauZXzGWpUfdm62LnwYZAy2LU%3D' (2026-01-15)
  → 'github:NixOS/nixpkgs/a6948e25ec72f0136259fc31bd7c6f01c7475d1e?narHash=sha256-0tbrDnsRD3U8v9HK/c9LH0cQ43V3BU2G8OsIfhVreTs%3D' (2026-01-17)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/1412caf7bf9e660f2f962917c14b1ea1c3bc695e?narHash=sha256-AIdl6WAn9aymeaH/NvBj0H9qM%2BXuAuYbGMZaP0zcXAQ%3D' (2026-01-13)
  → 'github:NixOS/nixpkgs/e4bae1bd10c9c57b2cf517953ab70060a828ee6f?narHash=sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc%3D' (2026-01-16)
• Updated input 'vpngate':
    'github:davegallant/vpngate/a668484da6b969d29dd2f74d5a4f2323fb48beef?narHash=sha256-24%2BgJj4UsxwQmdxSS3Aqo2fl0Ep13sYrTDvcHY24mwA%3D' (2025-12-19)
  → 'github:davegallant/vpngate/9e9992e643e44896a6c7f8070e968f0d85e4cea4?narHash=sha256-c1Pua1krdRog8AjctVsIv2SjcqGI/YBQjh35Mao%2BpUQ%3D' (2026-01-17)
2026-01-17 16:02:58 -05:00
2026-01-14 22:07:03 -05:00
2025-04-06 22:03:10 -04:00
2025-04-12 23:55:23 -04:00
2026-01-01 14:18:18 -05:00
2025-12-14 00:11:31 -05:00
2026-01-14 22:07:03 -05:00
2026-01-05 08:59:22 -05:00
2023-09-30 21:20:12 -04:00
2025-12-24 22:05:10 -05:00
2024-06-28 12:01:09 -04:00
2025-11-14 08:24:07 -05:00

nix-config

This repo stores nix configuration to manage my hosts running NixOS and macOS.

The configuration is very specific to my own machines and setup, but it may be a useful reference for anyone else learning or experimenting with nix, whether it be on a personal workstation or a server environment.

 macchina

        a8888b.           Host        -  dave@hephaestus
       d888888b.          Machine     -  Micro-Star International Co., Ltd MS-7C02 1.0
       8P"YP"Y88          Kernel      -  6.12.61
       8|o||o|88          Distro      -  NixOS 25.11 (Xantusia)
       8'    .88          DE          -  KDE
       8`._.' Y8.         Packages    -  1 (cargo), 10998 (nix)
      d/      `8b.        Shell       -  fish
     dP        Y8b.       Terminal    -  alacritty
    d8:       ::88b.      Resolution  -  2560x1440, 3840x2160
   d8"         'Y88b      Uptime      -  26m
  :8P           :888      CPU         -  AMD Ryzen 7 5700X 8-Core Processor (16)
   8a.         _a88P      CPU Load    -  8%
 ._/"Yaa     .| 88P|      Memory      -  10.7 GB / 32.8 GB
 \    YP"    `|     `.
 /     \.___.d|    .'
 `--..__)     `._.'

Prerequisites

Build

To run a build/rebuild:

just rebuild

Update

To update nixpkgs defined in flake.nix, run:

just update

If there are updates, they should be reflected in flake.lock.

Rollback

To rollback to the previous generation:

just rollback

Garbage collection

To cleanup previous files, run nix garbage collection:

just clean

Restoring from a live USB

If the bootloader for some reason breaks (i.e. motherboard firmware upgrade), restore it from a live USB by running the following commands:

$ sudo cryptsetup luksOpen /dev/nvme0n1p2 crypted-nixos
Enter passphrase for /dev/nvme0n1p2: ********
$ sudo mount /dev/vg/root /mnt
$ sudo mount /dev/nvme0n1p1 /mnt/boot/efi
$ sudo nixos-enter --root /mnt
$ hostname <hostname>

Navigate to the nix-config directory and run:

just rebuild-boot
Description
configuration for my mac and linux workstations
Readme MIT 8.1 MiB
Languages
Nix 96.1%
Shell 2.2%
Just 1.7%