Dave Gallant 6738c7f4a7 nix flake update: 2026-02-24 22:02:46 UTC
unpacking 'https://flakehub.com/f/DeterminateSystems/determinate/%2A' into the Git cache...
unpacking 'github:NixOS/nixpkgs/c9c494411139bf640b22c332f7a92b94e8454de2' into the Git cache...
unpacking 'github:Veirt/weathr/7e3d7cd909fa61c36a6cf99ea84980199c3a9f63' into the Git cache...
• Updated input 'determinate':
    'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/3.16.0/019c58b5-64dc-77f9-b913-8738b7d338cc/source.tar.gz?narHash=sha256-NrCFwn20ewJwy/SZoREs%2BXylerizPCYP54n9qkr31/E%3D' (2026-02-13)
  → 'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/3.16.3/019c8e19-e7a4-7fe4-ad79-b4b5feefd24a/source.tar.gz?narHash=sha256-ns%2B2FDFS2BUbT1CshCF0hLYyYR2BiTOQqCMHDoGFXUo%3D' (2026-02-24)
• Updated input 'determinate/determinate-nixd-aarch64-darwin':
    'https://install.determinate.systems/determinate-nixd/tag/v3.16.0/macOS?narHash=sha256-PUo0u1iNMB8eTlBNFMCW8/UAn1sGKGqsIYlXaDRhx00%3D'
  → 'https://install.determinate.systems/determinate-nixd/tag/v3.16.3/macOS?narHash=sha256-NK3YCWCmz9WYQtXTg5/VYNo%2BKrV/7P5rBYqVhkzWEv8%3D'
• Updated input 'determinate/determinate-nixd-aarch64-linux':
    'https://install.determinate.systems/determinate-nixd/tag/v3.16.0/aarch64-linux?narHash=sha256-jiIWiM88xkEpBQeohSxhl83fn2xoZY0nFkrW6CUAIAI%3D'
  → 'https://install.determinate.systems/determinate-nixd/tag/v3.16.3/aarch64-linux?narHash=sha256-RtiD/ualuvKSZH04G5KpBd2D4tcr5pv//cU%2BCGnByKs%3D'
• Updated input 'determinate/determinate-nixd-x86_64-linux':
    'https://install.determinate.systems/determinate-nixd/tag/v3.16.0/x86_64-linux?narHash=sha256-qF/NNdHwh3tAHrKIOz2FRq5Q8GcSMzJeEY/PFvGf5vo%3D'
  → 'https://install.determinate.systems/determinate-nixd/tag/v3.16.3/x86_64-linux?narHash=sha256-XDzjUdfsnWtANfAzd8GpLkuch1%2B3rHDGD2uKN93Fw6M%3D'
• Updated input 'determinate/nix':
    'https://api.flakehub.com/f/pinned/DeterminateSystems/nix-src/3.16.0/019c589d-45e9-7337-9ff0-a8d78fecf63f/source.tar.gz?narHash=sha256-Itk88UC3CxjGjjAb20KI6KrM9tRoGEpbv996fXwAWGo%3D' (2026-02-13)
  → 'https://api.flakehub.com/f/pinned/DeterminateSystems/nix-src/3.16.3/019c8e13-4542-7edc-9244-38a597d18258/source.tar.gz?narHash=sha256-yMI4VhuahG1027I%2Bx/xy0F5FUM7ntwB/hDouCmpwEb8%3D' (2026-02-24)
• Updated input 'determinate/nixpkgs':
    'https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.942631%2Brev-fef9403a3e4d31b0a23f0bacebbec52c248fbb51/019c4621-ce4f-799f-82f6-b3b29f099b09/source.tar.gz?narHash=sha256-pF1quXG5wsgtyuPOHcLfYg/ft/QMr8NnX0i6tW2187s%3D' (2026-02-08)
  → 'https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.946843%2Brev-ac055f38c798b0d87695240c7b761b82fc7e5bc2/019c6a25-fd20-733f-936e-6487e2957fe4/source.tar.gz?narHash=sha256-trTtk3WTOHz7hSw89xIIvahkgoFJYQ0G43IlqprFoMA%3D' (2026-02-15)
• Updated input 'home-manager':
    'github:nix-community/home-manager/0d782ee42c86b196acff08acfbf41bb7d13eed5b?narHash=sha256-3iVX1%2B7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8%3D' (2026-02-05)
  → 'github:nix-community/home-manager/cb6c151f5c9db4df0b69d06894dc8484de1f16a0?narHash=sha256-EDLi%2BYAsEEAmMeZe1v6GccuGRbCkpSZp/%2BA6g%2BpivR8%3D' (2026-02-22)
• Updated input 'home-manager/nixpkgs':
    'github:NixOS/nixpkgs/e576e3c9cf9bad747afcddd9e34f51d18c855b4e?narHash=sha256-tlFqNG/uzz2%2B%2BaAmn4v8J0vAkV3z7XngeIIB3rM3650%3D' (2026-02-03)
  → 'github:NixOS/nixpkgs/c217913993d6c6f6805c3b1a3bda5e639adfde6d?narHash=sha256-D1PA3xQv/s4W3lnR9yJFSld8UOLr0a/cBWMQMXS%2B1Qg%3D' (2026-02-20)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/c217913993d6c6f6805c3b1a3bda5e639adfde6d?narHash=sha256-D1PA3xQv/s4W3lnR9yJFSld8UOLr0a/cBWMQMXS%2B1Qg%3D' (2026-02-20)
  → 'github:NixOS/nixpkgs/e764fc9a405871f1f6ca3d1394fb422e0a0c3951?narHash=sha256-sdaqdnsQCv3iifzxwB22tUwN/fSHoN7j2myFW5EIkGk%3D' (2026-02-24)
• Updated input 'nixpkgs-master':
    'github:NixOS/nixpkgs/c3897c38444fe89feb95e02ba82b1b6e39498808?narHash=sha256-Cy2rFEGB5a4aC%2Btc1Pu8dSjXQu6M0ZCa1MAcZhEeRZY%3D' (2026-02-21)
  → 'github:NixOS/nixpkgs/c9c494411139bf640b22c332f7a92b94e8454de2?narHash=sha256-WehtkEpgrJDWmkSN8RRgJGA4HFvxWbwnihY8tJAWJqQ%3D' (2026-02-24)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/0182a361324364ae3f436a63005877674cf45efb?narHash=sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ%3D' (2026-02-17)
  → 'github:NixOS/nixpkgs/2fc6539b481e1d2569f25f8799236694180c0993?narHash=sha256-0MAd%2B0mun3K/Ns8JATeHT1sX28faLII5hVLq0L3BdZU%3D' (2026-02-23)
• Updated input 'vpngate':
    'github:davegallant/vpngate/7948580d1dbfb55fc860f5fec739ded255ea9d22?narHash=sha256-HRD%2B5T0kkjWmeZc9722zPhwdKaNJ7foQW5%2BVlM/STOY%3D' (2026-02-16)
  → 'github:davegallant/vpngate/e2a3d5ab73ad8a0f052556c0f9d4be2c51058917?narHash=sha256-cKtETtnZvBGV3Jn8/KczzselLepwH%2Bt3vJg24O7wn9c%3D' (2026-02-21)
• Updated input 'weathr':
    'github:Veirt/weathr/65f1610698cd9678a38b7f0e6dcf1084695a9e0a?narHash=sha256-XnkDOzS64bUHylsKaHC9Q2Nkq14OUYC6OKrUZDfNCPY%3D' (2026-02-22)
  → 'github:Veirt/weathr/7e3d7cd909fa61c36a6cf99ea84980199c3a9f63?narHash=sha256-PXr/5eKV/oPvjsas5AIkRS88gFnFskr6%2BeXWdeR8Yo8%3D' (2026-02-24)
2026-02-24 17:02:46 -05:00
2026-02-22 23:47:01 -05:00
2025-04-12 23:55:23 -04:00
2026-02-14 07:32:05 -05:00
2026-02-22 23:47:01 -05:00
2026-02-22 23:47:01 -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%