Commit Graph
75 Commits
Author SHA1 Message Date
Jörg Thalheim 65bd5a97f8 add test for lvm example 2022-09-04 12:52:19 +02:00
Jörg Thalheim 3e48d1fd85 name on partition is no longer optional 2022-09-04 12:27:59 +02:00
Jörg Thalheim fd2de4ddd4 fix gpt-bios-compat example and test it. 2022-09-04 12:27:59 +02:00
Jörg Thalheim e0de34c07d make error message nicer if type is ommitted 2022-09-04 12:12:09 +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
Jörg Thalheim adf901d581 Merge pull request #27 from nix-community/zfs
zfs, lvm raid, btrfs subvolumes support & some fixups
2022-08-26 14:59:28 +01: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 e4836108d5 create.filesystem: support extraArgs 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 6b0b20da18 /lib -> / 2022-08-24 22:24:33 +02:00
Lassulus 1be70de384 Merge pull request #23 from Baitinq/master 2022-08-24 20:32:36 +02:00
Baitinq 84214f3e3c Support logical volume sizing in logical extents units
This allows us to create a lv with size 100%FREE for all the availeable
size of the VG, etc.
2022-08-24 20:27:47 +02:00
Jörg Thalheim 1b836c9724 Merge pull request #22 from nix-community/raid2
add mdadm support
2022-08-24 19:20:53 +01:00
lassulus 88cb7a4719 add mdadm support 2022-08-24 20:15:18 +02:00
Lassulus 7328d8b41e Merge pull request #21 from Baitinq/master 2022-08-24 17:18:42 +02:00
Baitinq e1927693e3 Support optional keyfile for luks encrypted partitions
If the keyfile attribute is not present it will omit any keyfile luks
configuration and instead will make the user be prompted for any
passphrases.
2022-08-24 16:48:31 +02:00
Jörg Thalheim 9bca66ca7d Merge pull request #15 from nix-community/dev-disk
use /dev/disk/by-path for better nvme support
2022-08-23 19:39:46 +01:00
Jörg Thalheim 5643130fbb fix mount.partition by non rehashing already hashed device-id 2022-08-23 20:37:22 +02:00
Jörg Thalheim e9d1f151a2 use nix at eval time rather grep at runtime 2022-08-23 20:37:00 +02:00
lassulus af29463588 use /dev/disk/by-path for better nvme support 2022-08-23 09:55:05 +02:00
Jörg Thalheim 5bcd94a7ec Merge pull request #12 from nix-community/flag-support
Add flag support
2022-08-19 08:52:50 +01:00
Jörg Thalheim fc568cf797 add flag support 2022-08-19 09:52:12 +02:00
Jörg Thalheim c40b0dc031 fix standalone example 2022-08-19 09:47:43 +02:00
Jörg Thalheim e97ddb5138 Merge pull request #11 from nix-community/change-mount-code
use findmnt and mount with X-mount.mkdir
2022-08-17 15:36:20 +01: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 f8522774e7 Merge pull request #10 from nix-community/docs
README: fix the example
2022-08-17 14:29:02 +01:00
Jörg Thalheim dc0c387628 README: fix the example 2022-08-17 15:28:24 +02:00
Jörg Thalheim 91efad5326 Merge pull request #8 from nix-community/no-impure
No impure
2022-08-17 14:00:19 +01:00
Jörg Thalheim 6b3d6452eb add flake 2022-08-17 14:53:51 +02:00
Jörg Thalheim cfd8c7ae13 add gitignore 2022-08-17 14:53:43 +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
Lassulus 7dce65dd28 Merge pull request #6 from moduon/noop
feat: noop partitions
2022-07-10 09:41:41 +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 1af856886e Merge pull request #4 from Mic92/docs
Improve documentation
2019-09-16 12:51:00 +02:00
Jörg Thalheim 9385bfb16f README.md: explain tsp-create/tsp-mount commands. 2019-09-16 10:56:55 +01:00
Jörg Thalheim ca433fdaff README: fix incorrect example 2019-09-16 10:56:41 +01:00
Jörg Thalheim 7ed3b9ad79 README.md: put tsp-disk.json before configuration.nix
This is imho the more important configuration of this tool.
The configuration.nix is just necessary boiler code.
2019-09-16 10:52:23 +01:00
Jörg Thalheim 1eb200a050 README.md: comment install-to-hd by default out
otherwise people might accidentally loose data.
2019-09-16 10:51:13 +01:00
lassulus beda422c5f README: fix example syntax 2019-02-02 12:32:10 +01:00