| 25 Jul 2024 |
lassulus | probably it can be setup with hooks, not sure how though | 13:24:54 |
gdarends | https://github.com/moleculezz/nixos-config/blob/80a9d5fc7db228d61f6ecb0ef3cce63e394427d4/hosts/gnix/disk-configuration.nix | 13:24:59 |
gdarends | This is my current config. But I wanna move away from ZFS encryption because of the issues related with it. | 13:25:48 |
gdarends | What are hooks? Where can I read about it? | 13:26:40 |
gdarends | Is it a disko thing or nixos thing? | 13:27:04 |
lassulus | a disko thing | 13:32:28 |
lassulus | but we lack documentation for it I realize :D | 13:34:32 |
lassulus | basically you can set preCreateHook postCreateHook preMountHook and postMountHook on most disko types | 13:36:03 |
lassulus | https://github.com/nix-community/disko/blob/master/example/zfs.nix#L55 | 13:36:05 |
lassulus | it's just a shell script snippet that gets inserted into the generated script, although there are some variables from the type available as shell variables | 13:39:37 |