Commit graph

63 commits

Author SHA1 Message Date
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
Jörg Thalheim
65bd5a97f8 add test for lvm example 2022-09-04 12:52:19 +02:00
Jörg Thalheim
fd2de4ddd4 fix gpt-bios-compat example and test it. 2022-09-04 12:27:59 +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
lassulus
9bb4aec964 support zfs over legacy fs 2022-08-26 12:55:50 +02:00
Jörg Thalheim
722dde361c zfs: support for root dataset mountpoint and mountpoint=none 2022-08-26 10:29:49 +02:00
Jörg Thalheim
57b7c5506a also test zfs filesystem options 2022-08-26 09:12:40 +02:00
lassulus
81e704b638 add btrfs subvolumes 2022-08-25 23:31:05 +02:00
lassulus
dadc491330 add lvm raid 2022-08-25 23:31:05 +02:00
lassulus
83fb8f661e add zfs support/test/example 2022-08-25 23:31:05 +02:00
lassulus
dd99e29edc fix cryptsetup luksOpen idempotency, add luks-lvm test 2022-08-25 15:32:09 +02:00
lassulus
1237ac36db fix mdadm mounting, move test to mdadm test 2022-08-25 15:32:09 +02:00
lassulus
88cb7a4719 add mdadm support 2022-08-24 20:15:18 +02:00
Jörg Thalheim
fc568cf797 add flag support 2022-08-19 09:52:12 +02:00