adding uwsm, ty fufexan. and quite a bit more

This commit is contained in:
cnst
2024-11-18 06:14:56 +01:00
parent 8d121fda97
commit edfc9767c7
17 changed files with 120 additions and 119 deletions

View File

@@ -2,14 +2,14 @@
config,
lib,
pkgs,
# inputs,
inputs,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.services.hypridle;
# hypridleFlake = inputs.hypridle.packages.${pkgs.system}.hypridle;
hypridlePkg = pkgs.hypridle;
hypridleFlake = inputs.hypridle.packages.${pkgs.system}.hypridle;
# hypridlePkg = pkgs.hypridle;
in {
options = {
home.services.hypridle.enable = mkEnableOption "Enables hypridle";
@@ -17,7 +17,7 @@ in {
config = mkIf cfg.enable {
services.hypridle = {
enable = true;
package = hypridlePkg;
package = hypridleFlake;
settings = {
general = {
lock_cmd = "hyprlock";
@@ -38,5 +38,6 @@ in {
];
};
};
systemd.user.services.hypridle.Unit.After = lib.mkForce "graphical-session.target";
};
}