From 2ec356dc643289698f7a585cc3b06923d2edae2e Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 28 Sep 2024 17:09:24 +0200 Subject: [PATCH] home: Enable pueue service --- home/config/nil/home.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/home/config/nil/home.nix b/home/config/nil/home.nix index d9a6d30..4cbb295 100644 --- a/home/config/nil/home.nix +++ b/home/config/nil/home.nix @@ -376,6 +376,27 @@ in { ''; }; + services.pueue = { + enable = true; + settings = { + shared = { + use_unix_socket = true; + }; + + client = { + status_time_format = "%H:%M:%S %Z"; + status_datetime_format = "%Y-%m-%d %H:%M:%S %Z"; + }; + + daemon = { + groups.default = 0; + callback = lib.mkIf (osConfig.hardware.graphics.enable or false) + ''${lib.getExe pkgs.libnotify} "Task {{ id }} {{ result }}" "Command: {{ command }}\nPath: {{ path }}\nStatus: {{ exit_code }}''; + callback_log_lines = 4; + }; + }; + }; + services.ssh-agent.enable = true; systemd.user.tmpfiles.rules = [