Commit Graph

76 Commits

Author SHA1 Message Date
lassulus
cd38be93db tests: refactor into testlib; change config devices via fold 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
c5a31c351e tests zfs: don't read key from prompt 2023-07-11 09:29:28 +02:00
Technofab
57622c4a68 feat(swap): add resumeDevice option which sets boot.resumeDevice 2023-07-04 21:35:38 +00:00
lassulus
15c4d57b41 example gpt-bios-compat: use new gpt type 2023-07-04 16:02:25 +00:00
lassulus
c9c2fa9d3a lib: better formatting of generated shell output 2023-07-04 16:02:25 +00:00
lassulus
49888aeb90 example.btrfs_subvolumes: use new gpt type 2023-07-04 16:02:25 +00:00
Jörg Thalheim
4823509bb3 boot-raid1: switch to new gpt type 2023-06-19 00:33:16 +00:00
lassulus
64c9c78c15 types gpt: sort after priority. add size option 2023-06-17 19:07:36 +00:00
Jörg Thalheim
95c10a6c7f bcachefs: migrate to new part type 2023-06-16 20:01:12 +00:00
lassulus
93632ac0ae tests: use diskoScript output 2023-06-16 21:11:44 +02:00
lassulus
aca7f18667 example simple-efi: use table_gpt 2023-06-16 21:11:44 +02:00
lassulus
0e942c56d7 tests: add lvm-sizes-sort test 2023-05-15 17:46:04 +02:00
lassulus
8b43938cf7 luks-lvm: document secret.key newline 2023-04-30 14:00:14 +02:00
Lassulus
6cbfde5b50
Merge pull request #196 from nix-community/types-compact 2023-04-15 15:44:33 +02:00
lassulus
7d70009c26 types: split zfs_dataset into zfs_fs & zfs_volume 2023-04-14 17:27:04 +02:00
phaer
9da50f9b9f zfs: add tests for hooks
Note that we currently need to hardcode the pool name as it isn't
exposed correctly for the subshells atm.
2023-04-10 22:52:52 +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
6d630b8fe4 turn all extraArgs into lists 2023-02-14 10:07:22 +01:00
Chris Scutcher
ff5127ea0a
style: Re-apply style normalisation
Originally this was manually applied with;

```sh
nixpkgs-fmt **.nix && statix fix
```

but I overlooked the fact that `**.nix` would only expand to files in
the root (I should have used `**/*.nix`).

Previous commit adds `nix fmt` support which passes `.` to `nixpkgs-fmt`
(if no other path is explicitly specified when running `nix fmt`).

This commit includes the changes made by running `nix fmt`.
2023-02-07 15:56:08 +00:00
Chris Scutcher
4ba8181319
style: Disable inherit pattern check in statix
As discussed in [this
comment](https://github.com/nix-community/disko/pull/143#discussion_r1097912402),
as a blanket rule converting everything possible to `inherit` like
statements can hurt readability.

Add config file for statix to disable these checks and fixes, then rerun
the autofix with these options.
2023-02-07 15:37:12 +00:00
Chris Scutcher
08435eec4b
style: Apply nixpkgs-fmt and fix
Apply standard formatting and some statix conventions using;

```sh
nixpkgs-fmt **.nix && statix fix .
```

With the intent of making contribution a bit easier and reducing mental
load in hand formatting (in the same vein as [black]).

[black]: https://github.com/psf/black#the-uncompromising-code-formatter
2023-02-06 14:24:34 +00:00
Ilan Joselevich
3e0b4ddd3b
{example,tests}: add hybrid-tmpfs-on-root 2023-02-02 21:28:36 +02:00
Jörg Thalheim
d23fcb611e add test for hybrid configuration 2023-02-02 14:49:20 +01:00
lassulus
b3875afc1f examples: add hybrid.nix 2023-02-02 14:42:05 +01:00
phaer
f8050d6f84 fix examples...
...why did those tests pass before? config didn't match options schema
2023-01-19 13:07:31 +01:00
Jörg Thalheim
eca7cb9132 bcachefs support 2023-01-04 09:57:53 +01:00
lassulus
33f93c658e tests zfs: add crypted 2022-12-26 21:13:34 +01:00
Jörg Thalheim
e3527b826d
Merge pull request #75 from nix-community/zap2
zap only devices we care about
2022-12-25 18:25:37 +00:00
lassulus
164ea97c01 examples complex: add short iter time for faster tests 2022-12-25 14:39:02 +01:00
lassulus
12c7e608ed examples: cleanup a bit 2022-12-24 12:13:04 +01:00
Lily Foster
77c8f6460f types: add btrfs_subvol type 2022-12-23 20:27:47 +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
ff7fa87600 add nodev support (for tmpfs, ramfs, nfs) 2022-12-04 12:41:46 +01:00
David Arnold
efc80d7d89 types: init swap 2022-12-02 08:09:37 +01:00
lassulus
c3a7680451 example with-lib: remove traceValSeq 2022-12-01 20:10:58 +01:00
lassulus
417ad31ca5 types: fix negative relative disk size 2022-11-25 08:38:47 +01:00
lassulus
d61fd1522b add regression test for #52 2022-11-10 09:46:55 +01:00
lassulus
c777d1ca4f tests: add simple-efi 2022-10-23 12:29:13 +02: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
Jörg Thalheim
386e463cfc fix standalone example 2022-09-13 13:32:28 +02:00
Jörg Thalheim
380fcb3026 fix example/default.nix 2022-09-05 14:11:32 +02:00
Jörg Thalheim
68f950bf20 add test for standalone nixos config 2022-09-04 13:09:10 +02:00