Commit graph

89 commits

Author SHA1 Message Date
Florian Engel
bf50636a65 Remove trialing newline in passwordFile 2023-08-16 15:19:21 +00:00
Florian Engel
3eb703b7bc Rename keyFile to passwordFile and dedeprecate 2023-08-16 15:19:21 +00:00
Jörg Thalheim
b32f0e2876 apply treefmt 2023-08-11 08:45:46 +00:00
lassulus
491e567d47 tests: enable swraid, add luks-on-mdadm test 2023-08-10 11:03:58 +00:00
Lassulus
4aa3641e27
Merge pull request #305 from tiredofit/luks_btrfs_example
Create luks-btrfs-subvolumes.nix
2023-07-27 18:05:55 +02:00
rogarb
f44564a744 fix(btrfs): update BTRFS example
This takes into account the fix from commit 7f3b98f.
2023-07-27 08:55:04 +00:00
Dave Conroy
6277e8ed99
Create luks-btrfs-subvolumes.nix
Add example for BTRFS Subvolumes inside a LUKS container
2023-07-26 18:02:33 -07:00
rogarb
66b762d3ac
docs(luks): add an example using keyFile options 2023-07-23 22:26:23 +02:00
lassulus
c3e4e625c1 examples; document EF02 type 2023-07-21 14:28:58 +02:00
lassulus
4fa29318f6 examples: set EF00 partition types 2023-07-20 19:03:26 +02:00
lassulus
e388239311 example zfs: add ESP type 2023-07-20 18:03:59 +02:00
lassulus
5ad79f43df add legacy-table test & example 2023-07-19 19:07:40 +00:00
lassulus
04452cfd2b tests: refactor to not use args and to use gpt type 2023-07-19 19:07:40 +00:00
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