niri and yubikey login config
This commit is contained in:
parent
b40f1fc5fb
commit
3641a241a1
3 changed files with 29 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue