summaryrefslogtreecommitdiff
path: root/users/kassouni/palette/reboot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/kassouni/palette/reboot.nix')
-rw-r--r--users/kassouni/palette/reboot.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/kassouni/palette/reboot.nix b/users/kassouni/palette/reboot.nix
new file mode 100644
index 0000000..0b5d51f
--- /dev/null
+++ b/users/kassouni/palette/reboot.nix
@@ -0,0 +1,5 @@
+{ writers, systemd }:
+writers.writeBashBin "reboot" ''
+ set -eu
+ ${systemd}/bin/systemctl reboot
+''