diff options
author | Luflosi <luflosi@luflosi.de> | 2023-04-04 20:12:51 +0200 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2023-06-05 16:39:09 +0200 |
commit | 7573c269a899af49e88007e46154d9a263fac843 (patch) | |
tree | ad32033b478eab06fd21d88794726baa64f20333 /nixos/tests/apfs.nix | |
parent | a2c62404a0842bf647607bcae827ea2f25e29d19 (diff) |
nixos/tests/apfs: clean up code
- Use `runTest` instead of `handleTest`, which simplifies the code a little - Use `lib.maintainers` instead of `pkgs.lib.maintainers` - Remove unused function argument `pkgs` - Change test name in the kernel module from `test` to `apfs`, since that seems to be a common pattern for the name
Diffstat (limited to 'nixos/tests/apfs.nix')
-rw-r--r-- | nixos/tests/apfs.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/tests/apfs.nix b/nixos/tests/apfs.nix index 9fe689951c783..15ed5aa7f5736 100644 --- a/nixos/tests/apfs.nix +++ b/nixos/tests/apfs.nix @@ -1,8 +1,8 @@ -import ./make-test-python.nix ({ pkgs, ... }: { +{ lib, ... }: { name = "apfs"; - meta.maintainers = with pkgs.lib.maintainers; [ Luflosi ]; + meta.maintainers = with lib.maintainers; [ Luflosi ]; - nodes.machine = { pkgs, ... }: { + nodes.machine = { virtualisation.emptyDiskImages = [ 1024 ]; boot.supportedFilesystems = [ "apfs" ]; @@ -62,4 +62,4 @@ import ./make-test-python.nix ({ pkgs, ... }: { "apfsck /dev/vdb", ) ''; -}) +} |