niri: disable desktop stuff for server

This commit is contained in:
Christoph Hollizeck 2025-10-30 23:56:37 +01:00
parent cddca4ee54
commit 82f7af3856
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
3 changed files with 120 additions and 107 deletions

View file

@ -1,27 +1,29 @@
{
flake.modules.homeManager.cholli =
{ ... }:
{ lib, osConfig, ... }:
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock-blur";
};
config = lib.mkIf (osConfig.networking.hostName == "yggdrasil") {
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock-blur";
};
listener = [
{
timeout = 600;
on-timeout = "loginctl lock-session";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
listener = [
{
timeout = 600;
on-timeout = "loginctl lock-session";
}
{
timeout = 1200;
on-timeout = "hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
];
};
};
};
};