niri and yubikey login config

This commit is contained in:
twoneis 2025-03-07 12:48:04 +01:00
parent b40f1fc5fb
commit 3641a241a1
3 changed files with 29 additions and 2 deletions

View file

@ -64,6 +64,7 @@ in {
settings = import ./niri.conf.nix {
lib = lib;
config = config;
pkgs = pkgs;
};
};
@ -92,6 +93,22 @@ in {
};
};
services.swayidle = let
lockCmd = "${config.home-manager.users.${conf.username}.programs.swaylock.package}/bin/swaylock";
in {
enable = true;
events = [
{
event = "lock";
command = lockCmd;
}
{
event = "before-sleep";
command = lockCmd;
}
];
};
services.mako = {
enable = true;
defaultTimeout = 5000;