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.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/users/kassouni/palette/shutdown.nix b/users/kassouni/palette/shutdown.nix
index 2db9425..28f8d8f 100644
--- a/users/kassouni/palette/shutdown.nix
+++ b/users/kassouni/palette/shutdown.nix
@@ -1,9 +1,13 @@
-{ writers, systemd }:
+{ pkgs, ... }:
{
- name = "shutdown";
- icon = "󰐥";
- exe = writers.writeBash "shutdown" ''
- set -eu
- exec ${systemd}/bin/systemctl poweroff
- '';
+ kassouni.palette.commands = [
+ {
+ name = "shutdown";
+ icon = "󰐥";
+ exe = pkgs.writers.writeBash "shutdown" ''
+ set -eu
+ exec ${pkgs.systemd}/bin/systemctl poweroff
+ '';
+ }
+ ];
}