nixos 26.05

This commit is contained in:
müde 2026-05-27 19:21:09 +02:00
parent 246ce7eeb1
commit 2397049d74
10 changed files with 102 additions and 156 deletions

View file

@ -6,7 +6,7 @@
in
{
enable = true;
systemdTarget = "graphical-session.target";
systemdTargets = [ "graphical-session.target" ];
timeouts = [
{
timeout = 30;
@ -17,11 +17,8 @@
command = "${pkgs.systemd}/bin/systemctl suspend";
}
];
events = [
{
event = "before-sleep";
command = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
}
];
events = {
before-sleep = "${pkgs.playerctl}/bin/playerctl pause; ${lock-command}";
};
};
}