47 Commits
Author SHA1 Message Date
Michael Hoang caa775cf67 Activate unmount tests (#1150)
Adds missing testscript code to execute unmount scripts. With this
change all test derivations of the Disko examples verify proper
unmounting behaviour.

Part of stacked pull requests to enable unmount testing. This is PR 4
out of 4. Stacks on top of #1149.
Only the last commit applies to this PR.

See #1140 for ealier discussion.
2026-05-29 09:56:52 +00:00
Michael Hoang 5ba0c9555c luks: add test for FIDO2 (#1264) 2026-05-25 09:00:11 +00:00
Michael Hoang a1b9822f03 luks: add test for FIDO2 2026-05-25 10:55:36 +02:00
Michael Hoang 640d1dd8e0 tests: fix enabling Canokey 2026-05-25 10:55:36 +02:00
Michael Hoang 7da3d737f7 luks: fix not asking for password in format script 2026-05-20 00:19:04 +02:00
Michael Hoang 0d15976fce luks: don't depend on autogenerated password 2026-05-20 00:14:40 +02:00
Michael Hoang d60b2b5e00 luks: improve idempotency for enrolling FIDO2
Using FIDO2 automatically generates a temporary password for setting up LUKS
which is not available on subsequent runs of the script causing the format
script to crash with `password: unbound variable`.
2026-05-20 00:07:06 +02:00
Michael Hoang 65fb947964 flake: bump nixpkgs (#1258) 2026-05-19 21:37:54 +00:00
Michael Hoang 6795806dbc tests/zfs-with-vdevs: fix not all vdevs detected 2026-05-19 23:33:40 +02:00
Michael Hoang d405a17988 devShells: expose disko CLI (#1261) 2026-05-18 20:18:46 +00:00
Michael Hoang a6a0a068c2 devShells: expose disko CLI 2026-05-17 10:44:15 +02:00
Enzime 8383dadd06 [create-pull-request] automated change 2026-02-17 18:57:51 +00:00
Michael Hoang 04d390e4ff ci: fix PRs not merged automatically redux 2026-02-17 11:26:27 +01:00
Michael Hoang e963ed5aea flake.lock: Update (#1202)
Automated changes by the
[update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock)
GitHub Action.

```
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/48698d12cc10555a4f3e3222d9c669b884a49dfe?narHash=sha256-yxgb4AmkVHY5OOBrC79Vv6EVd4QZEotqv%2B6jcvA212M%3D' (2026-01-25)
  → 'github:NixOS/nixpkgs/e3cb16bccd9facebae3ba29c6a76a4cc1b73462a?narHash=sha256-jpfPdBjKO232s5NueoNEvvVzpndiUzPLNYcH4/Ov0gY%3D' (2026-02-15)
```

### Running GitHub Actions on this PR

GitHub Actions will not run workflows on pull requests which are opened
by a GitHub Action.

**To run GitHub Actions workflows on this PR, close and re-open this
pull request.**
2026-02-16 19:57:59 +00:00
Michael Hoang 16c9ab4e13 mergify: drop (#1211) 2026-02-16 16:23:54 +00:00
Michael Hoang cd3861a0f3 mergify: drop 2026-02-16 16:21:59 +01:00
Michael Hoang 148791c8ef ci: fix PRs not getting merged automatically (#1201) 2026-01-27 14:22:24 +00:00
Michael Hoang 41fd3909e2 ci: fix PRs not getting merged automatically 2026-01-27 15:16:01 +01:00
Michael Hoang 00395d188e create-release: don't require SSH auth 2026-01-20 15:39:27 +00:00
Michael Hoang d3b7039649 create-release: make all changes go through a PR 2026-01-20 15:39:27 +00:00
Michael Hoang 4a334b87ca create-release: fix version not updated correctly 2026-01-20 15:39:27 +00:00
Michael Hoang 9c1eaf1e09 release: reset released flag 2026-01-20 15:05:16 +00:00
Michael Hoang de57087392 release: v1.13.0 2026-01-20 14:56:26 +00:00
Michael Hoang ea8eec3908 treefmt: stop using old attr 2026-01-20 14:28:37 +00:00
Michael Hoang 6fcb8c602b scripts: avoid running create-release directly 2026-01-20 13:41:04 +00:00
Michael Hoang 8d2eb19e35 tests/bcachefs: fix invalid syntax warning 2026-01-20 12:57:44 +00:00
Michael Hoang ec90d55ff3 lib: pass stdenv to qemu-common not pkgs 2026-01-20 12:57:44 +00:00
Michael Hoang 5ae05d98d2 treewide: reformat 2026-01-20 12:57:44 +00:00
Michael Hoang f2bba803a7 treewide: reformat 2025-12-14 04:58:58 +00:00
Michael Hoang 67ff9807dd lib: fix mdadm warning when using config.system.build.installTest 2025-09-19 13:18:24 +00:00
Michael Hoang ddef55ae5f Revert "flake.lock: Update"
This reverts commit 4f554162ff.
2025-09-19 13:07:01 +00:00
Michael Hoang b709e1cc33 interactive-vm: override forceImportRoot
Some users will have `boot.zfs.forceImportRoot = false;` in their
configurations which conflicts with `boot.zfs.forceImportAll = true;`,
so we set it to `true` to match.
2024-09-28 13:50:34 +00:00
Michael Hoang c5853dcb32 module: throw if no disks are defined 2024-09-19 07:41:06 +07:00
Michael Hoang 706a1722f6 module: always populate system.build attributes 2024-09-19 06:53:45 +07:00
Michael Hoang d32d1504c7 zpool: support updating zfsprops on root dataset 2024-09-17 16:35:12 +00:00
Michael Hoang a9eeea3379 zfs_fs: support updating mountpoint properly
Use `zfs set -u` to update the `mountpoint` flag without mounting or
unmounting the filesystem. This flag was added in OpenZFS 2.2.0, which
was released October 2023.

The previous logic would not update `mountpoint` if `config.options` was
empty or only contained `mountpoint`.
2024-09-17 16:35:12 +00:00
Michael Hoang 88b015b9eb make-disk-image: fix spelling for --help 2024-09-17 14:02:43 +00:00
Michael Hoang d52ca37645 docs: rename vdb -> main 2024-09-17 14:02:43 +00:00
Michael Hoang cc4d4a4b91 make-disk-image: convert into NixOS module
As `makeDiskImages` always requires a NixOS configuration, we can
simplify the code by convering it into a NixOS module. Then we can make
it responsible for populating `system.build.diskoImages` and
`system.build.diskoImagesScript`.
2024-09-14 19:35:44 +10:00
Michael Hoang 59fb64b36b make-disk-image: automatically add ZFS to kernel
Fixes #461
2024-09-12 15:06:25 +00:00
Michael Hoang 0943a50ee7 interactive-vm: convert into NixOS module 2024-09-09 16:06:20 +10:00
Michael Hoang ba66c22ec1 Add virtualisation.vmVariantWithDisko option 2024-09-09 16:06:20 +10:00
Michael Hoang ce3b896151 zfs: respect canmount
Also refactor `zpool` type to use `zfs_fs` to construct the root dataset
for the zpool, which means we no longer need to duplicate the dataset
create and mount logic inside the `zpool` type.
2024-01-01 01:09:11 +00:00
Michael Hoang 2791cedcba zpool: only unmount when root dataset is mounted
Fixes #486
2024-01-01 01:09:11 +00:00
Michael Hoang 583bdf4fc6 tests: check canmount ZFS flag is respected 2024-01-01 01:09:11 +00:00
Michael Hoang 9f9ff673d1 zpool: fix default dataset getting shadowed
If the zpool's root dataset is not the rootfs and gets mounted on
creation, the actual rootfs will get mounted later and shadow the
current mountpoint.

Running `zfs unmount` is the easiest way to unmount the zpool's root
dataset on creation without messing up the value of the `mountpoint`
setting.
2023-12-19 23:49:30 +11:00
Michael Hoang 4346558fd4 tests: add test for running ZFS as not the rootfs 2023-12-19 23:49:20 +11:00