mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
13 lines
325 B
Nix
13 lines
325 B
Nix
|
{ 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
|
||
|
'';
|
||
|
}
|