Dave Gallant 5fad38af62 nix flake update: 2025-12-29 15:40:43 UTC
unpacking 'https://flakehub.com/f/DeterminateSystems/determinate/%2A' into the Git cache...
unpacking 'github:NixOS/nixpkgs/9ef261221d1e72399f2036786498d78c38185c46' into the Git cache...
unpacking 'github:NixOS/nixpkgs/e576833e6d6eabc7f25744c72b3c276b71073b43' into the Git cache...
• Updated input 'home-manager':
    'github:nix-community/home-manager/0999ed8f965bbbd991437ad9c5ed3434cecbc30e?narHash=sha256-ZbnG01yA3O8Yr1vUm3%2BNQ2qk9iRhS5bloAnuXHHy7%2Bc%3D' (2025-12-24)
  → 'github:nix-community/home-manager/e298a148013c980e3c8c0ac075295fab5074d643?narHash=sha256-VvZeAKyB3vhyHStSO8ACKzWRKNQPmVWktjfuSVdvtUA%3D' (2025-12-28)
• Updated input 'home-manager/nixpkgs':
    'github:NixOS/nixpkgs/76701a179d3a98b07653e2b0409847499b2a07d3?narHash=sha256-5G1NDO2PulBx1RoaA6U1YoUDX0qZslpPxv%2Bn5GX6Qto%3D' (2025-12-23)
  → 'github:NixOS/nixpkgs/f560ccec6b1116b22e6ed15f4c510997d99d5852?narHash=sha256-BASnpCLodmgiVn0M1MU2Pqyoz0aHwar/0qLkp7CjvSQ%3D' (2025-12-26)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f560ccec6b1116b22e6ed15f4c510997d99d5852?narHash=sha256-BASnpCLodmgiVn0M1MU2Pqyoz0aHwar/0qLkp7CjvSQ%3D' (2025-12-26)
  → 'github:NixOS/nixpkgs/9ef261221d1e72399f2036786498d78c38185c46?narHash=sha256-P6RVkrM9JLCW6xBjSwHfgTOQ1JwBUma5xe5LI8xAPC0%3D' (2025-12-28)
• Updated input 'nixpkgs-master':
    'github:NixOS/nixpkgs/0fc968d1d581cfe48af9b16ca9a8c1d9ed164dc1?narHash=sha256-%2Bw1FueSMtdtKYmmZ6ioea4vSlIMe5Iiga5Vj9vCi1ek%3D' (2025-12-28)
  → 'github:NixOS/nixpkgs/e576833e6d6eabc7f25744c72b3c276b71073b43?narHash=sha256-QBlD29cjl2KbqElzRyKE30vCqtZDDFy6Te0bRocES/A%3D' (2025-12-29)
• Updated input 'nixpkgs-unstable':
    'github:NixOS/nixpkgs/3e2499d5539c16d0d173ba53552a4ff8547f4539?narHash=sha256-QEhk0eXgyIqTpJ/ehZKg9IKS7EtlWxF3N7DXy42zPfU%3D' (2025-12-25)
  → 'github:NixOS/nixpkgs/c0b0e0fddf73fd517c3471e546c0df87a42d53f4?narHash=sha256-coBu0ONtFzlwwVBzmjacUQwj3G%2BlybcZ1oeNSQkgC0M%3D' (2025-12-28)
2025-12-29 10:40:43 -05:00
2025-12-25 22:14:05 -05:00
2025-04-06 22:03:10 -04:00
2025-04-12 23:55:23 -04:00
2025-12-23 09:00:40 -05:00
2025-12-14 00:11:31 -05:00
2025-12-19 17:08:55 -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 7.8 MiB
Languages
Nix 96.1%
Shell 2.3%
Just 1.6%