Commit graph

22 commits

Author SHA1 Message Date
Andrew Marshall
2d7d77878c Implement preMountHook & postMountHook
These options previously existed but had no effect. Now they are
implemented. They only affect mount during disko’s filesystem creation,
not during any later mounts.

Adding test case to existing “complex” example and test mostly because
couldn’t think of any better place to put it.
2023-11-12 09:36:50 +00:00
Jörg Thalheim
2b523b58e6 use M instead MiB suffix everywhere
This seems to do better alignment
2023-09-27 06:02:50 +00:00
DavHau
b755564539 examples: use zstd compression as default 2023-09-04 23:02:07 +02:00
Jörg Thalheim
b32f0e2876 apply treefmt 2023-08-11 08:45:46 +00:00
rogarb
66b762d3ac
docs(luks): add an example using keyFile options 2023-07-23 22:26:23 +02:00
lassulus
4fa29318f6 examples: set EF00 partition types 2023-07-20 19:03:26 +02:00
lassulus
04452cfd2b tests: refactor to not use args and to use gpt type 2023-07-19 19:07:40 +00:00
arch
7eb0940839 add additionalKeyFiles option to luks 2023-07-14 08:51:17 +00:00
rogarb
68eb09b183 feat(luks): Add settings submodule
The settings submodule mirrors the options which can be set for
boot.initrd.luks.devices.<name>.

The keyFile option is now deprecated and should be declared under settings.
2023-07-13 09:17:50 +00:00
lassulus
c9c2fa9d3a lib: better formatting of generated shell output 2023-07-04 16:02:25 +00:00
lassulus
7d70009c26 types: split zfs_dataset into zfs_fs & zfs_volume 2023-04-14 17:27:04 +02:00
lassulus
654ecb386e types lvm_vg: inline lvm_lv type 2023-04-07 18:50:18 +02:00
lassulus
d6f062ea11 types table: inline partition type 2023-04-07 18:30:56 +02:00
lassulus
769bde0834 turn disk configs into valid nixos configuration 2023-04-06 08:56:55 +02:00
Linus Heckemann
0577409d12 luks: rename extraArgs to extraFormatArgs, add extraOpenArgs 2023-03-21 19:43:42 +01:00
lassulus
164ea97c01 examples complex: add short iter time for faster tests 2022-12-25 14:39:02 +01:00
Lily Foster
71a30f9e74 types: pass through mountOptions to _config for all types 2022-12-23 17:43:40 +01:00
lassulus
e0ce5fb75f examples: use default cryptsetup parameters 2022-12-04 13:31:43 +01:00
lassulus
87e93073ac example complex: fix default value 2022-10-23 11:36:56 +02:00
lassulus
8666475b74 tests: pass lib to examples 2022-10-23 11:34:39 +02:00
lassulus
9f7f23abdb add nixos tests for disko.config, extend/fix existing tests 2022-10-02 16:41:02 +02:00
lassulus
dcb0c42857 reimplement disko using the nixos type system
This should make the code cleaner, more robust and errors should be
clearer. we also changed the configuration format a bit.
2022-09-02 11:14:58 +02:00