properly add modules to flake

This commit is contained in:
fleaz 2024-07-10 00:06:00 +02:00
parent 0568e2990b
commit 5523fac8d9
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 5 additions and 3 deletions

View file

@ -1,6 +1,10 @@
{
outputs = { self, ... }: {
overlays.default = final: prev: {
modules = {
matrix-alertmanager-receiver = import ./modules/matrix-alertmanager-receiver.nix;
};
hacompanion = prev.callPackage ./hacompanion { };
cpthook = prev.callPackage ./cpthook { };

View file

@ -6,8 +6,6 @@ in
options.services.matrix-alertmanager-receiver = {
enable = lib.mkEnableOption "matrix-alertmanager-receiver, a Matrix bridge for Alertmanager webhooks";
package = lib.mkPackageOption pkgs "matrix-alertmanager-receiver" { };
configFile = lib.mkOption {
type = lib.types.path;
default = "";
@ -32,7 +30,7 @@ in
serviceConfig = {
DynamicUser = true;
User = "matrix-alertmanager-receiver";
ExecStart = "${cfg.package}/bin/matrix-alertmanager-receiver -config ${cfg.configFile}";
ExecStart = "${pkgs.matrix-alertmanager-receiver}/bin/matrix-alertmanager-receiver -config ${cfg.configFile}";
};
};
};