Compare commits

..

3 commits

Author SHA1 Message Date
Harald Hoyer
bcdaa091eb feat(nix): enhance systemd-email-notify service configuration
- Added `StartLimitIntervalSec` and `StartLimitBurst` for `ntfy-failure@` unit.
- Refactored `ExecStart` into `script` for improved readability.
- Adjusted `scriptArgs` from `%I` to `%i`.
2026-04-07 10:38:16 +02:00
Harald Hoyer
e9bce3fd6a feat(nix): add direnv and enable claude-code in unstable overlay 2026-04-07 10:01:50 +02:00
Harald Hoyer
301d0f7807 refactor(rialo): remove unused packages from systemPackages
- Removed `dnsmasq`, `libvirt`, and `virt-manager` for cleanup.
2026-04-07 09:53:50 +02:00
3 changed files with 23 additions and 20 deletions

View file

@ -33,8 +33,9 @@ let
ERRMAIL
'';
onFailureUnits =
[ "email@%n.service" ]
onFailureUnits = [
"email@%n.service"
]
++ optionals (cfg.ntfy.tokenFile != null) [ "ntfy-failure@%n.service" ];
in
{
@ -103,9 +104,14 @@ in
systemd.services."ntfy-failure@" = {
description = "Send ntfy notification on service failure";
onFailure = mkForce [ ];
unitConfig = {
StartLimitIntervalSec = "5m";
StartLimitBurst = 1;
};
serviceConfig = {
Type = "oneshot";
ExecStart = pkgs.writeShellScript "ntfy-failure-notify" ''
};
script = ''
TOKEN=$(cat ${cfg.ntfy.tokenFile})
UNIT="$1"
${pkgs.curl}/bin/curl -s \
@ -116,8 +122,7 @@ in
-d "$(systemctl status --full "$UNIT" 2>&1 | head -40)" \
${cfg.ntfy.url}/${cfg.ntfy.topic}
'';
};
scriptArgs = "%I";
scriptArgs = "%i";
};
})
]);

View file

@ -4,9 +4,10 @@ final: prev: {
gemini-cli
opencode
tailscale
#claude-code
claude-code
qwen-code
llama-cpp-rocm
direnv
# open-webui
# vscode
# nodejs_20
@ -21,7 +22,7 @@ final: prev: {
*/
# goose-cli = channels.unstable.callPackage ./goose.nix { };
claude-code = channels.unstable.callPackage ./claude-code/package.nix { };
# claude-code = channels.unstable.callPackage ./claude-code/package.nix { };
# gemini-cli = channels.unstable.callPackage ./gemini-cli/package.nix { };
# vscode-extensions = channels.unstable.vscode-extensions // {
# rooveterinaryinc = { roo-cline = channels.unstable.callPackage ./roo-code.nix { }; };

View file

@ -36,13 +36,10 @@ with lib.metacfg;
environment.systemPackages = with pkgs; [
attic-client
claude-code
dnsmasq
gh
imagemagick
libvirt
nodejs
qemu
virt-manager
sox
];