nix-config/modules/both/i3/lockscreen.nix

33 lines
567 B
Nix

{
config,
pkgs,
lib,
...
}: {
environment.systemPackages = with pkgs; [
lightlocker
];
home-manager.users.${config.host.user} = {
config,
osConfig,
lib,
...
}: {
xsession.windowManager.i3.config = {
keybindings = let
mod = config.xsession.windowManager.i3.config.modifier;
in {
"${mod}+x" = ''
exec --no-startup-id light-locker-command -l
'';
};
startup = [
{
command = "light-locker";
notification = false;
}
];
};
};
}