summaryrefslogtreecommitdiff
path: root/tests/power-restart.nix
blob: ade98514e2646ac7c751ed05222392b50fdde834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ config, pkgs, ... }:

{
  power.restartAfterPowerFailure = true;
  power.restartAfterFreeze = true;

  test = ''
    echo checking restart power settings in /activate >&2
    grep "systemsetup -setRestartPowerFailure 'on'" ${config.out}/activate
    grep "systemsetup -setRestartFreeze 'on'" ${config.out}/activate
  '';
}