From aaddfe7507dc7b39e526de650b8110337e4a5ebc Mon Sep 17 00:00:00 2001 From: merspieler Date: Sun, 4 Feb 2024 23:51:05 +0100 Subject: [PATCH 1/4] Make the config name actually how it is in the readme --- module.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.nix b/module.nix index 634daf4..63614f0 100644 --- a/module.nix +++ b/module.nix @@ -2,10 +2,10 @@ with lib; # with lib; -let cfg = config.pinpox.services.alertmanager-ntfy; +let cfg = config.services.alertmanager-ntfy; in { - options.pinpox.services.alertmanager-ntfy = { + options.services.alertmanager-ntfy = { enable = mkEnableOption "alertmanager-ntfy service"; httpAddress = mkOption { From b25d625177d68ea20d2e559273316e0cee5b42a0 Mon Sep 17 00:00:00 2001 From: merspieler Date: Sun, 4 Feb 2024 23:51:34 +0100 Subject: [PATCH 2/4] Fix deprecation warning --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 1e4e764..6a2c747 100644 --- a/default.nix +++ b/default.nix @@ -6,7 +6,7 @@ with import {}; version = "0.1"; src = ./.; - vendorSha256 = "sha256-k45e6RSIl3AQdOFQysIwJP9nlYsSFeaUznVIXfbYwLA="; + vendorHash = "sha256-k45e6RSIl3AQdOFQysIwJP9nlYsSFeaUznVIXfbYwLA="; subPackages = [ "." ]; meta = with lib; { From 0f0c2ed224a4384555970570beedf0839f40ef06 Mon Sep 17 00:00:00 2001 From: merspieler Date: Mon, 5 Feb 2024 00:00:03 +0100 Subject: [PATCH 3/4] Fix readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 13e85aa..9da1835 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ inputs.alertmanager-ntfy.url = "github:pinpox/alertmanager-ntfy"; # Import the module in your configuration.nix imports = [ - self.inputs.alertmanager-ntfy.nixosModules.alertmanager-ntfy + self.inputs.alertmanager-ntfy.nixosModules.default ]; # Enable and set options From 37354956d25d284bd194b19d9edd3a7541c12b49 Mon Sep 17 00:00:00 2001 From: merspieler Date: Mon, 5 Feb 2024 00:02:04 +0100 Subject: [PATCH 4/4] Another case of deprecated use fixed --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 5bae051..fb84ed1 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,7 @@ version = "1.0.0"; src = ./.; - vendorSha256 = "sha256-Ezt1HDxGQ7DePF90HgHKkH7v365ICFdnfcWJipLhCwQ="; + vendorHash = "sha256-Ezt1HDxGQ7DePF90HgHKkH7v365ICFdnfcWJipLhCwQ="; meta = with pkgs.lib; { description = "Relay prometheus alerts to ntfy";