fix env in systemd services

This commit is contained in:
Reid 2024-05-10 16:00:52 -07:00
parent 752bcecb9f
commit 5277f5f683
3 changed files with 9 additions and 6 deletions

View file

@ -22,4 +22,5 @@ each host should have these files:
- divide steam and gamemode?
- laptop specific configuration (power profiles daemon, battery, etc)
- sddm cursors no work :(
- try out the [new sddm options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=sddm)
- try out the [new sddm options](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=sddm)
- gnome keyring / gcr for saving passwords

View file

@ -14,18 +14,18 @@ in {
};
config = mkIf cfg.enable {
hm.services.hypridle = let
hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl";
in {
hm.services.hypridle = {
enable = true;
package = cfg.package;
lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${hyprctl} dispatch exec ${lib.getExe config.modules.desktop.hyprlock.package}";
lockCmd = "${pkgs.procps}/bin/pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
unlockCmd = "${pkgs.procps}/bin/pkill -USR1 hyprlock";
beforeSleepCmd = "${pkgs.systemd}/bin/loginctl lock-session";
listeners = [
listeners = let
hyprctl = "${config.modules.desktop.hyprland.package}/bin/hyprctl";
in [
{
timeout = 90; # 1.5 min
onTimeout = "${hyprctl} dispatch dpms off"; # turn off screen

View file

@ -35,6 +35,8 @@ in {
xwayland.enable = true;
package = cfg.package;
systemd.variables = [ "--all" ];
settings = {
source = [];