Update flake.nix

This commit is contained in:
Gregory Bednov 2026-08-28 16:27:07 +03:00
commit 31e9bc98f9

View file

@ -39,16 +39,16 @@
let let
zenityDialog = zenityDialog =
msg: cmd: msg: cmd:
''${pkgs.zenity}/bin/zenity --question --text "Уверены, что хотите ${msg}?" --default-cancel; && ${cmd}''; ''${pkgs.zenity}/bin/zenity --question --text "Уверены, что хотите ${msg}?" --default-cancel && ${cmd}'';
in in
pkgs.writeShellScript "powermenu" '' pkgs.writeShellScript "powermenu" ''
if [ "$1" = "poweroff" ]; then if [ "$1" = "poweroff" ]; then
${zenityDialog "Выключить" "poweroff"} ${zenityDialog "выключить" "poweroff"}
exit 0 exit 0
fi fi
if [ "$1" = "reboot" ]; then if [ "$1" = "reboot" ]; then
${zenityDialog "Выключить" "reboot"} ${zenityDialog "перезагрузить" "reboot"}
exit 0 exit 0
fi fi
'' ''