Commit Graph
22 Commits
Author SHA1 Message Date
jackos1998andClaude Opus 5.5 7694945041 nixos/containers: Hash rendered nspawn file
CI / Check, build and cache nixfiles (push) Failing after 3h20m33s
Update docs / update (push) Canceled after 7m47s
The container restart trigger hashed the whole `systemd.nspawn.<name>`
option value. Newer NixOS adds a `warnings` list to it, which embeds
module source paths. With lazy trees those paths change on every
evaluation, so the toplevel differed between `nix build` and `nix eval`
and CI failed to push `system-kelder`.

Hash the rendered `.nspawn` text instead, so containers restart exactly
when the file systemd reads changes. Older NixOS renders all units into
one directory, so fall back to the JSON hash there until 26.11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:17:08 +00:00
jackos1998 8f4b61fc2b Update inputs 2025-03-09 20:00:35 +00:00
jackos1998 7e2dfc21c6 nixos/sfh: Working containers
CI / Check, build and cache Nix flake (push) Successful in 44m19s
2024-06-30 01:52:52 +01:00
jackos1998 bc9f266ef0 nixos/containers: Remove workaround for systemd-nspawn@ drop-in 2024-06-20 23:37:43 +01:00
jackos1998 01cb95de6d nixos/containers: Fix initial dummy deploy 2023-12-20 18:29:08 +00:00
jackos1998 373fb45831 nixos: Switch to systemd initrd
CI / Check, build and cache Nix flake (push) Successful in 17m17s
2023-12-04 23:00:25 +00:00
jackos1998 b65f1f6df7 nixos/containers: Ensure containers have cgroupsv2 2023-02-19 17:40:05 +00:00
jackos1998 b95199f146 Update agenix 2023-01-08 18:20:31 +00:00
jackos1998 63f1089613 nixos/common: Disable nix-gc in containers 2022-10-09 15:42:14 +01:00
jackos1998 25dd48b795 Fix bugs related to mismatched / missing nix 2022-06-12 23:21:57 +01:00
jackos1998 4ceba60918 nixos/containers: Fix users and group revival 2022-06-12 12:51:47 +01:00
jackos1998 7dc6b5df8c nixos: Initial jackflix container 2022-06-11 19:13:20 +01:00
jackos1998 58b2c6d8c5 nixos/containers: Fix agenix being broken with no dev key 2022-06-11 01:33:56 +01:00
jackos1998 11dbc01ba0 Add initial nginx container 2022-05-31 21:25:51 +01:00
jackos1998 00493bf30f nixos: Add working container VM (w/ vaultwarden)
Also improve IPv6 addressing / routing
2022-05-29 03:30:40 +01:00
jackos1998 5290c78b06 nixos/modules/containers: Remove host bridge config 2022-05-02 20:40:33 +01:00
jackos1998 6bc27ac4db nixos/containers: Add hot reload on deploy 2022-04-18 15:46:38 +01:00
jackos1998 91e3e55077 nixos: Fix secrets in containers 2022-04-18 15:34:08 +01:00
jackos1998 a817c7e23a nixos/containers: Don't rm /etc/machine-id on activation 2022-04-18 11:14:35 +01:00
jackos1998 0a5d9a809b nixos/containers: Restart systemd-nspawn@ unit when .nspawn file changes 2022-04-04 18:18:01 +01:00
jackos1998 19dcdcfa30 Initial custom systemd-nspawn based containers rewrite 2022-04-04 18:18:01 +01:00
jackos1998 67114c1336 Implement initial containers module 2022-03-26 14:20:54 +00:00