nixcfg/homeManagerModules/guiApps/wlogout/default.nix
2024-04-07 22:16:33 -04:00

35 lines
752 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 = "${pkgs.systemd}/bin/loginctl terminate-user $USER";
text = "Logout";
keybind = "e";
}
{
label = "shutdown";
action = "${pkgs.systemd}/bin/systemctl poweroff";
text = "Shutdown";
keybind = "s";
}
{
label = "reboot";
action = "${pkgs.systemd}/bin/systemctl reboot";
text = "Reboot";
keybind = "r";
}
];
};
};
}