mirror of
https://github.com/davegallant/nix-config
synced 2026-03-03 04:26:36 +00:00
08e0547ff7a30e4fce79881758e226ceb50ac407
unpacking 'https://flakehub.com/f/DeterminateSystems/determinate/%2A' into the Git cache... unpacking 'github:NixOS/nixpkgs/edb50bc5e0492dc04269519dc7e10c9a9a80c8a0' into the Git cache... • Updated input 'determinate': 'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/3.15.1/019b4e8a-dc22-75db-aef5-a447efbb1a13/source.tar.gz?narHash=sha256-G1Hljg7vIBt8n9cxO382YAZWtZU/mYfQcg3icdNG8RQ%3D' (2025-12-24) → 'https://api.flakehub.com/f/pinned/DeterminateSystems/determinate/3.15.2/019bde7d-0725-73ef-9705-498c50ef6e00/source.tar.gz?narHash=sha256-sV1OJYyktJRl7I3HxeBvWTWXjqm2uCTS3gS1p%2BDLn7c%3D' (2026-01-21) • Updated input 'determinate/determinate-nixd-aarch64-darwin': 'https://install.determinate.systems/determinate-nixd/tag/v3.15.1/macOS?narHash=sha256-uWDS94cAYprGj%2BAwuT42nuuDDicRLj1S0JwalZGeBRU%3D' → 'https://install.determinate.systems/determinate-nixd/tag/v3.15.2/macOS?narHash=sha256-zK2dgNHh/p92rk5jN%2BY1LOMn0HEdTsS%2B7XXwb2g52oM%3D' • Updated input 'determinate/determinate-nixd-aarch64-linux': 'https://install.determinate.systems/determinate-nixd/tag/v3.15.1/aarch64-linux?narHash=sha256-uHBcZCh2/Bj5/88TDihupA336tSQDk7s5lVP66IDAX0%3D' → 'https://install.determinate.systems/determinate-nixd/tag/v3.15.2/aarch64-linux?narHash=sha256-ckvZP0zFcbzLXWYOJUqYXkKBt0b2IZcQEr7YjEVtwOI%3D' • Updated input 'determinate/determinate-nixd-x86_64-linux': 'https://install.determinate.systems/determinate-nixd/tag/v3.15.1/x86_64-linux?narHash=sha256-y%2Bl05H6GNv/1WcrMztDYem8VBWqjc9gNg4WjeQ1PQxo%3D' → 'https://install.determinate.systems/determinate-nixd/tag/v3.15.2/x86_64-linux?narHash=sha256-8dLtm8FJrpyBmrNpspJj30/6I5HGEfjjXuFqURcZ8pk%3D' • Updated input 'determinate/nix': 'https://api.flakehub.com/f/pinned/DeterminateSystems/nix-src/3.15.1/019b4e84-d036-75db-b6c6-6bc2e2035c53/source.tar.gz?narHash=sha256-GsC52VFF9Gi2pgP/haQyPdQoF5Qe2myk1tsPcuJZI28%3D' (2025-12-24) → 'https://api.flakehub.com/f/pinned/DeterminateSystems/nix-src/3.15.2/019bde75-b4ee-74b2-a812-28dc2ee83d58/source.tar.gz?narHash=sha256-32oMe1y%2BkwvIJNiJsIvozTuSmDxcwST06i%2B0ak%2BL4AU%3D' (2026-01-21) • Updated input 'determinate/nixpkgs': 'https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.914780%2Brev-306ea70f9eb0fb4e040f8540e2deab32ed7e2055/019b49b8-ed0f-724e-bdaf-5fd90cc1c590/source.tar.gz?narHash=sha256-laJftWbghBehazn/zxVJ8NdENVgjccsWAdAqKXhErrM%3D' (2025-12-21) → 'https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.930106%2Brev-bde09022887110deb780067364a0818e89258968/019bd9ed-5f0b-7074-afb0-8bb5e13a7598/source.tar.gz?narHash=sha256-tLj4KcRDLakrlpvboTJDKsrp6z2XLwyQ4Zmo%2Bw8KsY4%3D' (2026-01-19) • Updated input 'home-manager': 'github:nix-community/home-manager/2a63d0e9d2c72ac4d4150ebb242cf8d86f488c8c?narHash=sha256-vRV1dWJOCpCal3PRr86wE2WTOMfAhTu6G7bSvOsryUo%3D' (2026-01-16) → 'github:nix-community/home-manager/75ed713570ca17427119e7e204ab3590cc3bf2a5?narHash=sha256-TtjKgXyg1lMfh374w5uxutd6Vx2P/hU81aEhTxrO2cg%3D' (2026-01-20) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/72ac591e737060deab2b86d6952babd1f896d7c5?narHash=sha256-6YwHV1cjv6arXdF/PQc365h1j%2BQje3Pydk501Rm4Q%2B4%3D' (2026-01-17) → 'github:NixOS/nixpkgs/3ceaaa8bc963ced4d830e06ea2d0863b6490ff03?narHash=sha256-sJERJIYTKPFXkoz/gBaBtRKke82h4DkX3BBSsKbfbvI%3D' (2026-01-20) • Updated input 'nixpkgs-master': 'github:NixOS/nixpkgs/a6948e25ec72f0136259fc31bd7c6f01c7475d1e?narHash=sha256-0tbrDnsRD3U8v9HK/c9LH0cQ43V3BU2G8OsIfhVreTs%3D' (2026-01-17) → 'github:NixOS/nixpkgs/edb50bc5e0492dc04269519dc7e10c9a9a80c8a0?narHash=sha256-emM5EkMW5eSjwc2rd8DGorgnbcmWyS7F0NtbvYhILKE%3D' (2026-01-21) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/e4bae1bd10c9c57b2cf517953ab70060a828ee6f?narHash=sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc%3D' (2026-01-16) → 'github:NixOS/nixpkgs/80e4adbcf8992d3fd27ad4964fbb84907f9478b0?narHash=sha256-C2TjvwYZ2VDxYWeqvvJ5XPPp6U7H66zeJlRaErJKoEM%3D' (2026-01-20)
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
- NixOS (Linux)
- Determinate Nix (macOS)
- just
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
Languages
Nix
96.1%
Shell
2.2%
Just
1.7%