mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 22:31:53 -05:00
31 lines
687 B
Nix
31 lines
687 B
Nix
|
{ pkgs, lib, config, ... }: {
|
||
|
|
||
|
options = { guiApps.wlogout.enable = lib.mkEnableOption "Enables wlogout."; };
|
||
|
|
||
|
config = lib.mkIf config.guiApps.wlogout.enable {
|
||
|
programs.wlogout = {
|
||
|
enable = true;
|
||
|
layout = [
|
||
|
{
|
||
|
label = "logout";
|
||
|
action = "loginctl terminate-user $USER";
|
||
|
text = "Logout";
|
||
|
keybind = "e";
|
||
|
}
|
||
|
{
|
||
|
label = "shutdown";
|
||
|
action = "systemctl poweroff";
|
||
|
text = "Shutdown";
|
||
|
keybind = "s";
|
||
|
}
|
||
|
{
|
||
|
label = "reboot";
|
||
|
action = "systemctl reboot";
|
||
|
text = "Reboot";
|
||
|
keybind = "r";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
};
|
||
|
}
|