Commit Graph

102 Commits

Author SHA1 Message Date
lassulus
7207e54351 tests: read serial instead of OCR for crypto tests 2023-04-06 08:56:55 +02:00
lassulus
769bde0834 turn disk configs into valid nixos configuration 2023-04-06 08:56:55 +02:00
bors[bot]
07f9727ce6
Merge #154
154: tests: adjust wait_for_text calls to work for systemd-initrd or old stage-1 r=Mic92 a=lilyinstarlight



Co-authored-by: Lily Foster <lily@lily.flowers>
2023-02-21 19:24:05 +00:00
Lily Foster
00a2e2c438
tests: adjust wait_for_text calls to work for systemd-initrd or old stage-1 2023-02-21 11:33:21 -05:00
Lily Foster
1dd1ca3b51
tests: add test names 2023-02-21 11:19:39 -05:00
Lily Foster
0accdf4e20 types,module,tests: run shellcheck on scripts before running them in NixOS tests 2023-02-14 09:07:13 +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
Jörg Thalheim
eca1957835 vendorize bcachefs kernel 2023-01-23 10:56:51 +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
lassulus
a3e511d3c8 tests: change passphrase to secretsecret
this is needed for zfs
2022-12-26 21:13:34 +01:00
lassulus
17da9b0708 init disk-deactivate for cleaning up the disk 2022-12-24 20:53:56 +01:00
lassulus
4ce2aa4845 tests swap: add jq to system 2022-12-24 12:13:04 +01:00
Jörg Thalheim
9e2c9d06f5 expose disko for non x86 2022-12-09 14:34:12 +01:00
lassulus
ff7fa87600 add nodev support (for tmpfs, ramfs, nfs) 2022-12-04 12:41:46 +01:00
lassulus
dfb7bd89e1 tests swap: get jq from systemPackages 2022-12-02 12:54:42 +01:00
David Arnold
efc80d7d89 types: init swap 2022-12-02 08:09:37 +01:00
lassulus
0f21bc31fe tests module: test system.build output instead of systemPackages 2022-12-01 20:11:22 +01:00
Jörg Thalheim
67f991e2bc drop environment.systemPackages
Those packages are only used for installation and are not used
afterwards. system.build outputs can be used to get them in an installer
included.
2022-11-29 15:00:25 +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
c5973aed4e tests: add testBoot parameter to disable boot tests 2022-11-10 09:46:06 +01:00
lassulus
fec0b14fb5 add tests for module and cli 2022-11-01 20:05:10 +01:00
lassulus
c777d1ca4f tests: add simple-efi 2022-10-23 12:29:13 +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
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
Jörg Thalheim
05a90d4227 tests: use mountpoint program to check for mountpoints 2022-08-26 08:51:21 +02:00
Jörg Thalheim
69f1337980 fix inconsistent indentation with nixpkgs-fmt 2022-08-26 08:41:58 +02:00
lassulus
1ac0e76b15 tests: add lib, autoimport tests 2022-08-25 23:31:05 +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
0ffaac7913 run all tests on ci 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
e123b05ff4 use findmnt and mount with X-mount.mkdir
This feels slightly cleaner and makes the code shorter.
2022-08-17 15:55:07 +02:00
Jörg Thalheim
20bfa32750 disko: get rid of impure imports
This is a backwards-incompatible change but it allows to pin nixpkgs,
which is desirable especially in professional environments where
reproduciblity is important.
2022-08-17 14:53:43 +02:00
lassulus
2fc06462ce fix: make test work with up2date nixpkgs 2022-07-10 09:41:53 +02:00
Jairo Llopis
9b53ee7b11
feat: noop partitions
Some deployments just need a raw block device because the app works better when handling those.

Examples: Ceph, Longhorn, OpenEBS.

The new `noop` type supports that. It just does nothing with the partitions created, whenever applied.

@moduon MT-904
2022-07-08 12:49:58 +01:00
lassulus
88f56a0b64 add nixos test 2018-08-05 11:45:15 +02:00