summaryrefslogtreecommitdiff
path: root/tests/power-restart.nix
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-16 22:22:34 +0100
committerGitHub <noreply@github.com>2025-01-16 22:22:34 +0100
commit8e7bd91f353caacc0bc4105f573eb3e17f09e03a (patch)
treec5059edcbebd9644290cad7c653c49a36d593021 /tests/power-restart.nix
parent6bd39d420578aacf7c0bab7de3e7027b952115ae (diff)
parentbd921223ba7cdac346477d7ea5204d6f4736fcc6 (diff)
Merge branch 'LnL7:master' into masterHEADmaster
Diffstat (limited to 'tests/power-restart.nix')
-rw-r--r--tests/power-restart.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/power-restart.nix b/tests/power-restart.nix
new file mode 100644
index 0000000..ade9851
--- /dev/null
+++ b/tests/power-restart.nix
@@ -0,0 +1,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
+ '';
+}