From fc1a32e1c501a3509b534bd86db91b623e700367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Tue, 11 Feb 2025 20:14:37 +0100 Subject: [PATCH] Add natstonotify --- flake.lock | 22 ++++++++++++++++++++++ flake.nix | 6 ++++++ home/gunter.nix | 1 + home/services/natstonotify.nix | 15 +++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 home/services/natstonotify.nix diff --git a/flake.lock b/flake.lock index 3c22578..1395da9 100644 --- a/flake.lock +++ b/flake.lock @@ -86,6 +86,27 @@ "url": "https://git.t-juice.club/torjus/huecli" } }, + "natstonotify": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1739300969, + "narHash": "sha256-Px0gbrbUulooUxX2Ww6bpWkM5QXKb17pN60TPwyLBrc=", + "ref": "master", + "rev": "6ac9b1bb3a515aea46fab67ed5fc9a508392f39f", + "revCount": 6, + "type": "git", + "url": "https://git.t-juice.club/torjus/natstonotify" + }, + "original": { + "ref": "master", + "type": "git", + "url": "https://git.t-juice.club/torjus/natstonotify" + } + }, "nix-packages": { "inputs": { "nixpkgs": [ @@ -269,6 +290,7 @@ "ghettoptt": "ghettoptt", "home-manager": "home-manager", "huecli": "huecli", + "natstonotify": "natstonotify", "nix-packages": "nix-packages", "nixpkgs": "nixpkgs", "nixpkgs-stable": "nixpkgs-stable", diff --git a/flake.nix b/flake.nix index 51fa96b..ea02875 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,10 @@ url = "git+https://git.t-juice.club/torjus/alerttonotify?ref=master"; inputs.nixpkgs.follows = "nixpkgs"; }; + natstonotify = { + url = "git+https://git.t-juice.club/torjus/natstonotify?ref=master"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = @@ -47,6 +51,7 @@ ghettoptt, huecli, alerttonotify, + natstonotify, nix-packages, ... }@inputs: @@ -81,6 +86,7 @@ nix-packages.overlays.default nixprstatus.overlays.default alerttonotify.overlays.default + natstonotify.overlays.default ]; in { diff --git a/home/gunter.nix b/home/gunter.nix index b1732c1..e163a65 100644 --- a/home/gunter.nix +++ b/home/gunter.nix @@ -32,6 +32,7 @@ ./services/backup-home.nix ./services/ghettoptt.nix ./services/alerttonotify.nix + ./services/natstonotify.nix ./sops ./ssh ./zsh diff --git a/home/services/natstonotify.nix b/home/services/natstonotify.nix new file mode 100644 index 0000000..e855459 --- /dev/null +++ b/home/services/natstonotify.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: +{ + systemd.user.services.natstonotify = { + Unit = { + Description = "Run natstonotify"; + }; + Service = { + Type = "simple"; + ExecStart = "${pkgs.natstonotify}/bin/natstonotify"; + }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + }; +}