about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-03-23 16:59:15 +0300
committerAzat Bahawi <azat@bahawi.net>2023-03-23 16:59:15 +0300
commitf6e36a699ae2d073e340e0a5844b8e111ed3de37 (patch)
tree52bb1d04e7b027165245b55622859b8425105fc7 /flake.nix
parent2023-03-22 (diff)
2023-03-23
Diffstat (limited to '')
-rw-r--r--flake.nix30
1 files changed, 19 insertions, 11 deletions
diff --git a/flake.nix b/flake.nix
index a1fe2f5..ae5d91a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -145,17 +145,17 @@
     #     nixpkgs.follows = "nixpkgs";
     #   };
     # };
-    # alertmanager-gotify = {
-    #   type = "github";
-    #   owner = "pinpox";
-    #   repo = "alertmanager-ntfy";
-    #   ref = "main";
-    #   inputs = {
-    #     flake-compat.follows = "flake-compat";
-    #     flake-utils.follows = "flake-utils";
-    #     nixpkgs.follows = "nixpkgs";
-    #   };
-    # };
+    alertmanager-ntfy = {
+      type = "github";
+      owner = "pinpox";
+      repo = "alertmanager-ntfy";
+      ref = "main";
+      inputs = {
+        flake-compat.follows = "flake-compat";
+        flake-utils.follows = "flake-utils";
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
 
     flake-utils = {
       type = "github";
@@ -291,6 +291,14 @@
               enable = true;
               types = ["text"];
             };
+            yamllint.enable = true;
+            promtool = {
+              enable = true;
+              name = "promtool";
+              description = "Check Prometheus rules.";
+              entry = "${pkgs.prometheus.cli}/bin/promtool check rules";
+              files = "(?x)^(modules/nixos/monitoring/rules/.*\.yaml)$";
+            };
           };
           settings.deadnix.edit = true;
         };

Consider giving Nix/NixOS a try! <3