Skip to content

Commit

Permalink
desktop: use custom hypridle service
Browse files Browse the repository at this point in the history
It's buggy and not really useful to me.

NixOS/nixpkgs#347651
  • Loading branch information
Atemu committed Oct 10, 2024
1 parent 082af51 commit b2f2499
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/desktop/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,25 @@ in
'';

programs.hyprland.enable = this.hypr.enable;
services.hypridle.enable = this.hypr.enable;
systemd.user.targets.hypr-session = {
bindsTo = [ "graphical-session.target" ];
wants = [ "graphical-session-pre.target" ];
after = [ "graphical-session-pre.target" ];
};
systemd.user.services.hypridle = {
serviceConfig = {
ExecStart = lib.getExe config.services.hypridle.package;
};
path = with pkgs; [
bash
brightnessctl
config.programs.hyprland.package
procps
swaylock
];
partOf = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
wantedBy = [ "hypr-session.target" ];
};

services.xserver.desktopManager.gnome.enable = this.tablet;
Expand Down

0 comments on commit b2f2499

Please sign in to comment.