Dave Gallant aafaf7fe7b nix flake update: 2026-02-08 16:56:16 UTC
unpacking 'https://flakehub.com/f/DeterminateSystems/determinate/%2A' into the Git cache...
unpacking 'github:NixOS/nixpkgs/1b8daddb2be538c7949238665291cb7011a02c68' into the Git cache...
• Updated input 'home-manager':
    'github:nix-community/home-manager/366d78c2856de6ab3411c15c1cb4fb4c2bf5c826?narHash=sha256-tNqCP/%2B2%2BpeAXXQ2V8RwsBkenlfWMERb%2BUy6xmevyhM%3D' (2026-01-28)
  → 'github:nix-community/home-manager/0d782ee42c86b196acff08acfbf41bb7d13eed5b?narHash=sha256-3iVX1%2B7YUIt23hBx1WZsUllhbmP2EnXrV8tCRbLxHc8%3D' (2026-02-05)
• Updated input 'home-manager/nixpkgs':
    'github:NixOS/nixpkgs/d351d0653aeb7877273920cd3e823994e7579b0b?narHash=sha256-r4GVX%2BFToWVE2My8VVZH4V0pTIpnu2ZE8/Z4uxGEMBE%3D' (2026-01-07)
  → 'github:NixOS/nixpkgs/e576e3c9cf9bad747afcddd9e34f51d18c855b4e?narHash=sha256-tlFqNG/uzz2%2B%2BaAmn4v8J0vAkV3z7XngeIIB3rM3650%3D' (2026-02-03)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/e576e3c9cf9bad747afcddd9e34f51d18c855b4e?narHash=sha256-tlFqNG/uzz2%2B%2BaAmn4v8J0vAkV3z7XngeIIB3rM3650%3D' (2026-02-03)
  → 'github:NixOS/nixpkgs/23d72dabcb3b12469f57b37170fcbc1789bd7457?narHash=sha256-z5NJPSBwsLf/OfD8WTmh79tlSU8XgIbwmk6qB1/TFzY%3D' (2026-02-07)
• Updated input 'nixpkgs-master':
    'github:NixOS/nixpkgs/1b8430a80f22c2ddaf3c3d24980c0d6b88dba873?narHash=sha256-IdHuWkQavs88Gg/%2BwPx2p1xXzmRTVqzUH27yyrh9Jm8%3D' (2026-02-04)
  → 'github:NixOS/nixpkgs/1b8daddb2be538c7949238665291cb7011a02c68?narHash=sha256-d2iwF8bedOsrBHu%2B7dpBEewr2JtDy6fyMCRt%2Ba46xEA%3D' (2026-02-08)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/bf922a59c5c9998a6584645f7d0de689512e444c?narHash=sha256-ksTL7P9QC1WfZasNlaAdLOzqD8x5EPyods69YBqxSfk%3D' (2026-02-04)
  → 'github:NixOS/nixpkgs/00c21e4c93d963c50d4c0c89bfa84ed6e0694df2?narHash=sha256-AYqlWrX09%2BHvGs8zM6ebZ1pwUqjkfpnv8mewYwAo%2BiM%3D' (2026-02-04)
2026-02-08 11:56:16 -05:00
2026-02-06 22:22:59 -05:00
2025-04-12 23:55:23 -04:00
2025-12-14 00:11:31 -05:00
2026-02-06 22:35:31 -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%