about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/earlyoom.nix
blob: 75bdf56899b30f656a293a1c4cdbf25377c38626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import ./make-test-python.nix ({ lib, ... }: {
  name = "earlyoom";
  meta = {
    maintainers = with lib.maintainers; [ ncfavier ];
  };

  machine = {
    services.earlyoom = {
      enable = true;
    };
  };

  testScript = ''
    machine.wait_for_unit("earlyoom.service")
  '';
})