Commit graph

18 commits

Author SHA1 Message Date
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
Linus Heckemann
0577409d12 luks: rename extraArgs to extraFormatArgs, add extraOpenArgs 2023-03-21 19:43:42 +01:00
lassulus
4db8159a19 table: fix mounting devices 2023-03-21 06:34:38 +01:00
Sandro Jäckel
2682530302
lvm_vg: allow putting unmounted disks into lvm 2023-03-15 20:59:55 +01:00
lassulus
2785974eef filesystem/nodev: mountpoint can be empty 2023-03-09 18:03:55 +01:00
lassulus
6da7333a76 more quotes to make shellcheck happy 2023-02-14 10:07:22 +01:00
lassulus
6d630b8fe4 turn all extraArgs into lists 2023-02-14 10:07:22 +01:00
Lily Foster
7585a30385 types: disable SC2034 in checks by default and suppress SC2043 warning 2023-02-14 09:07:13 +01: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
d6aea26c5b
Merge branch 'master' of https://github.com/nix-community/disko into FORMAT-WITH-STATIX-OPTIONS 2023-02-09 16:23:52 +00:00
Tomas Zaluckij
65ff2f9f63
fix mdadm raid device numbering style 2023-02-09 01:08:13 +00: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
Jörg Thalheim
78ea07107a support zvol with disko
this is useful for quick testing.
2023-02-02 14:42:09 +01:00
Jörg Thalheim
48e4c06004 split disko type into multiple files 2023-01-29 08:10:33 +01:00