replace swaylock with nova-shell lock

This commit is contained in:
müde 2026-04-17 12:47:51 +02:00
parent 3c8024045e
commit 4c82ecd2b9
5 changed files with 42 additions and 42 deletions

View file

@ -1,10 +1,5 @@
# based on https://codeberg.org/kiara/cfg/src/commit/b9c472acd78c9c08dfe8b6a643c5c82cc5828433/home-manager/kiara/swaylock.nix#
{
pkgs,
config,
lib,
...
}:
{ pkgs, ... }:
{
stylix.targets.swaylock = {
enable = true;
@ -30,34 +25,4 @@
indicator-thickness = 20;
};
};
services.swayidle = {
enable = true;
systemdTarget = "graphical-session.target";
timeouts = [
{
timeout = 5;
command = "${config.programs.swaylock.package}/bin/swaylock";
}
{
timeout = 60 * 10;
command = "${pkgs.systemd}/bin/systemctl suspend";
}
];
events = [
{
event = "before-sleep";
command = "${pkgs.playerctl}/bin/playerctl pause; ${config.programs.swaylock.package}/bin/swaylock";
}
{
event = "lock";
command = "${config.programs.swaylock.package}/bin/swaylock";
}
];
};
programs.niri.settings.binds."Super+Alt+L" = {
action.spawn = "${lib.getBin config.programs.swaylock.package}/bin/swaylock";
allow-when-locked = true;
};
}