summaryrefslogtreecommitdiff
path: root/users/kassouni/palette/shutdown.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/kassouni/palette/shutdown.nix')
-rw-r--r--users/kassouni/palette/shutdown.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/users/kassouni/palette/shutdown.nix b/users/kassouni/palette/shutdown.nix
index 919cf0a..2db9425 100644
--- a/users/kassouni/palette/shutdown.nix
+++ b/users/kassouni/palette/shutdown.nix
@@ -1,5 +1,9 @@
{ writers, systemd }:
-writers.writeBashBin "shutdown" ''
- set -eu
- ${systemd}/bin/systemctl poweroff
-''
+{
+ name = "shutdown";
+ icon = "󰐥";
+ exe = writers.writeBash "shutdown" ''
+ set -eu
+ exec ${systemd}/bin/systemctl poweroff
+ '';
+}