diff --git a/modules/packages.nix b/modules/packages.nix index cf7925d..4b3496a 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -29,5 +29,17 @@ jjui bat ]; + + systemd.user.services.handy = { + description = "Handy"; + wantedBy = ["graphical-session.target"]; + partOf = ["graphical-session.target"]; + after = ["graphical-session.target"]; + serviceConfig = { + ExecStart = "${self.packages.${pkgs.stdenv.hostPlatform.system}.handy}/bin/handy"; + Restart = "on-failure"; + RestartSec = 5; + }; + }; }; }