home: set swayosd and swayidle as wanted by hyprland and sway

This commit is contained in:
Aly Raffauf 2024-08-02 15:37:22 -04:00
parent 2c6cf6e300
commit deb5a43eee
2 changed files with 4 additions and 0 deletions

View file

@ -38,6 +38,8 @@
playerctld.enable = lib.mkDefault true; playerctld.enable = lib.mkDefault true;
swayosd.enable = lib.mkDefault true; swayosd.enable = lib.mkDefault true;
}; };
systemd.user.services.swayosd.Install.WantedBy = [ "hyprland-session.target" "sway-session.target" ];
xdg.portal = { xdg.portal = {
enable = true; enable = true;

View file

@ -58,5 +58,7 @@ in {
command = "${swaymsg} \"output * dpms off\"' resume '${swaymsg} \"output * dpms on\""; command = "${swaymsg} \"output * dpms off\"' resume '${swaymsg} \"output * dpms on\"";
}; };
}; };
systemd.user.services.swayidle.Service.Restart = lib.mkForce "on-failure";
}; };
} }