nixos/hypridle: switch to package provided user service file

format with nixfmt-rfc-style
This commit is contained in:
John Titor 2024-08-17 20:49:43 +05:30
parent d4a7a4d0e0
commit 077938f18b
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0

View File

@ -1,4 +1,9 @@
{ lib, pkgs, config, ... }:
{
lib,
pkgs,
config,
...
}:
let
cfg = config.services.hypridle;
@ -10,16 +15,9 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
cfg.package
];
environment.systemPackages = [ cfg.package ];
systemd.user.services.hypridle = {
description = "Hypridle idle daemon";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
script = lib.getExe cfg.package;
};
systemd.packages = [ cfg.package ];
};
meta.maintainers = with lib.maintainers; [ johnrtitor ];