From 10866cb97c64739a19b163c4d9d3ed6dd367dcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 3 Dec 2024 06:52:19 +0100 Subject: [PATCH] Add alerttonotify user service --- flake.lock | 8 ++++---- home/gunter.nix | 1 + home/services/alerttonotify.nix | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 home/services/alerttonotify.nix diff --git a/flake.lock b/flake.lock index 597c9c9..b0ca457 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1733183260, - "narHash": "sha256-6pB/H1Z+s+fGm2jqsiYKyrNeny7TfcCGbUhjTbTDGE8=", + "lastModified": 1733205085, + "narHash": "sha256-W+GqdY5EQ6AY5//TIc1QCTF5Fs4DmvF7IyR+V1GEOrA=", "ref": "master", - "rev": "686a322f00d5d042aad28d3eed5ac1b96443ae02", - "revCount": 3, + "rev": "d941260e388f1d790bc45f37788e2216605b105f", + "revCount": 4, "type": "git", "url": "https://git.t-juice.club/torjus/alerttonotify" }, diff --git a/home/gunter.nix b/home/gunter.nix index c694ec8..b1732c1 100644 --- a/home/gunter.nix +++ b/home/gunter.nix @@ -31,6 +31,7 @@ ./scripts ./services/backup-home.nix ./services/ghettoptt.nix + ./services/alerttonotify.nix ./sops ./ssh ./zsh diff --git a/home/services/alerttonotify.nix b/home/services/alerttonotify.nix new file mode 100644 index 0000000..fb11fa0 --- /dev/null +++ b/home/services/alerttonotify.nix @@ -0,0 +1,15 @@ +{ pkgs, config, ... }: +{ + systemd.user.services.alerttonotify = { + Unit = { + Description = "Run alerttonotify"; + }; + Service = { + Type = "simple"; + ExecStart = "${pkgs.alerttonotify}/bin/alerttonotify"; + }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + }; +}