properly add modules to flake
This commit is contained in:
parent
0568e2990b
commit
5523fac8d9
|
@ -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 { };
|
||||
|
||||
|
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue