Commit Graph
83 Commits
Author SHA1 Message Date
Richie ae18feb0fd feat(zfs): manage jeeves datasets declaratively from nix
treefmt / nix fmt (pull_request) Successful in 6s
pytest / pytest (pull_request) Successful in 37s
build_systems / build-brain (pull_request) Successful in 57s
test ebook search / test-ebook-search (pull_request) Successful in 44s
build_systems / build-bob (pull_request) Successful in 58s
build_systems / build-rhapsody-in-green (pull_request) Successful in 1m11s
build_systems / build-jeeves (pull_request) Successful in 3m1s
Add a zfs_manager module that reconciles the live datasets on jeeves
against a nix declaration, and generate the snapshot retention config
from that same declaration so the two can no longer drift apart.

systems/jeeves/datasets.nix declares every dataset on the media, storage
and scratch pools, nested the way zfs nests them and flattened into
pool/parent/child names. Values were transcribed from the live pools
rather than from scripts/zfs.sh, which had gone stale: acltype reads back
as posix, and media/secure/important, scratch/kestra and storage/nomad
were never recorded. root_pool datasets are declared for retention only,
their properties stay unmanaged for now.

python.tools.zfs_manager creates missing datasets and corrects drifted
properties, and never destroys anything. Undeclared properties are judged
by the zfs source field, so inherited and default values stay quiet while
locally set ones warn. Size values are normalised to bytes so that 16K and
16384 do not re-issue zfs set on every run.

vars.nix now derives its paths from the declared mountpoints instead of
repeating them, dropping three zfs_* keys that nothing referenced.

Replaces systems/jeeves/snapshot_config.toml, which listed a dataset that
does not exist and omitted thirteen that do.
2026-07-27 23:26:44 -04:00
Richie ea77e83f06 setting forceImportRoot to false
pytest / pytest (pull_request) Successful in 53s
treefmt / nix fmt (pull_request) Successful in 9s
build_systems / build-brain (pull_request) Successful in 2m33s
build_systems / build-bob (pull_request) Successful in 2m41s
build_systems / build-leviathan (pull_request) Successful in 3m22s
build_systems / build-rhapsody-in-green (pull_request) Successful in 3m32s
build_systems / build-jeeves (pull_request) Successful in 8m52s
build_systems / build-bob (push) Successful in 33s
treefmt / nix fmt (push) Successful in 6s
build_systems / build-brain (push) Successful in 31s
pytest / pytest (push) Successful in 26s
build_systems / build-leviathan (push) Successful in 41s
build_systems / build-rhapsody-in-green (push) Successful in 47s
build_systems / build-jeeves (push) Successful in 2m28s
2026-05-14 15:12:53 -04:00
Richie d1a3e7338a added permittedInsecurePackages for discord-canary 2026-05-03 00:39:23 -04:00
Richie d7651bf588 set update.nix to gitea 2026-04-30 12:46:55 -04:00
Richie 2865dcbe9c set dbus.implementation = "dbus"; 2026-04-30 12:46:55 -04:00
Richie 374d7e8d38 setting up resource monitoring for bob and jeeves 2026-04-30 10:16:37 -04:00
Richie 8ef776f859 updating download-buffer-size 2026-04-18 22:12:47 -04:00
Richie bcc2227cfd updating syncthing phone id 2026-04-18 11:53:20 -04:00
Richie 1419deb3c6 setting up brain nix serve 2026-03-24 15:04:48 -04:00
Richie 1d732bf41c removed ds_python 2026-03-05 20:47:34 -05:00
Richie 47c6f42d2f adding ds_python 2026-03-05 20:11:49 -05:00
Richie c262ff9048 added time out and fallback to nix settings 2026-03-04 22:07:53 -05:00
Richie c046710258 updating desktop kernelPackages 2025-12-26 11:53:26 -05:00
Richie 7f9fbe3602 updated to pkgs.zfs_2_4 2025-12-26 11:18:17 -05:00
Richie 102f36eb1b adding post quantum ssh KexAlgorithms 2025-11-16 08:22:41 -05:00
Richie 9ec988729b testing zfs_unstable and linuxPackages_6_17 2025-11-15 13:47:13 -05:00
Richie d6d48516ea updated PYTHONPATH to "${self}/" 2025-11-10 23:21:54 -05:00
Richie 100b8145e8 fixed PYTHONPATH 2025-11-10 23:21:54 -05:00
Richie e99cd8e54a removed system_tools 2025-11-10 23:21:54 -05:00
Richie d2db0de371 added my_python pkgs 2025-10-31 22:37:54 -04:00
Richie 18de5bc12c got python default.nix working 2025-10-31 22:37:54 -04:00
Richie d040b06869 added system_tests 2025-10-31 22:37:54 -04:00
Richie afb62b97d1 got usb decrypt working 2025-10-26 08:34:32 -04:00
Richie 04bf6f2038 updated commands with typer 2025-10-17 18:20:27 -04:00
Richie b554325b13 added brain to syncthing 2025-09-27 11:56:20 -04:00
Richie bff561946f reviewed coderabbit 2025-09-15 08:55:55 -04:00
Richie 4686a85bcd added EnvironmentFile to snapshot_manager 2025-09-15 08:55:55 -04:00
Richie 29f51bf116 testing linuxPackages_6_16 2025-09-10 21:58:26 -04:00
Richie 9f3a2b2a4b testing continue-on-error: true and linuxPackages_6_17 2025-09-10 21:58:26 -04:00
Richie c4d2b0b8d4 added lib.mkDefault tpo global environment 2025-08-17 10:35:37 -04:00
Richie 2325249687 added c library's for numpy 2025-08-17 10:35:37 -04:00
Richie 559ca7a45e adding update the jeeves 2025-07-28 12:47:17 -04:00
Richie f4348c2ab5 update desktop.nix kernelPackages to linuxPackages_6_15 2025-07-02 08:21:41 -04:00
Richie d711983ac7 update desktop.nix kernelPackages to linuxPackages_6_14 2025-06-20 21:34:29 -04:00
Richie 148722be43 disabled sudo 2025-06-11 22:50:43 -04:00
Richie be2421e3dc testing sudo-rs 2025-06-11 22:50:43 -04:00
Richie fa27adb4fe removed cache.tmmworkshop.com from nix.nix and flake.nix 2025-06-08 15:06:01 -04:00
Richie 43276a693a updated defaultLocale to en_US.UTF-8 2025-05-31 09:09:12 -04:00
Richie 84504c68b7 removed supportedLocales 2025-05-31 09:09:12 -04:00
Richie eb69646603 treefmt 2025-04-05 14:16:41 -04:00
Richie ccfde41209 enabled powertop by default 2025-04-05 14:16:41 -04:00
Richie 171dcb6273 testing nixpkgs.config.cudaSupport 2025-03-25 11:42:48 -04:00
Richie 8576cb2113 updated phone id 2025-03-23 19:06:29 -04:00
Richie 27c59192c8 linux 6.13 2025-03-14 22:32:19 -04:00
Richie 1d1bfae8ee made syncthing overrideFolders false on jeeves 2025-02-26 21:04:27 -05:00
Richie f7f0d02ef9 moved nvidia.nix to common/optional 2025-02-12 21:20:39 -05:00
Richie 300aa1f032 ran nix fmt . 2025-02-08 18:13:31 -05:00
Richie 00852c019d moving hardware.bluetooth to optional/desktop.nix 2025-01-26 12:58:32 -05:00
Richie c0a97c6ed8 removed unnecessary nesting 2025-01-19 16:40:53 -05:00
Richie 83dad24351 moved davids-server.id to jeeves/syncthing.nix 2025-01-19 16:40:53 -05:00