properly add modules to flake
This commit is contained in:
parent
0568e2990b
commit
5523fac8d9
|
@ -1,6 +1,10 @@
|
||||||
{
|
{
|
||||||
outputs = { self, ... }: {
|
outputs = { self, ... }: {
|
||||||
overlays.default = final: prev: {
|
overlays.default = final: prev: {
|
||||||
|
modules = {
|
||||||
|
matrix-alertmanager-receiver = import ./modules/matrix-alertmanager-receiver.nix;
|
||||||
|
};
|
||||||
|
|
||||||
hacompanion = prev.callPackage ./hacompanion { };
|
hacompanion = prev.callPackage ./hacompanion { };
|
||||||
cpthook = prev.callPackage ./cpthook { };
|
cpthook = prev.callPackage ./cpthook { };
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ in
|
||||||
options.services.matrix-alertmanager-receiver = {
|
options.services.matrix-alertmanager-receiver = {
|
||||||
enable = lib.mkEnableOption "matrix-alertmanager-receiver, a Matrix bridge for Alertmanager webhooks";
|
enable = lib.mkEnableOption "matrix-alertmanager-receiver, a Matrix bridge for Alertmanager webhooks";
|
||||||
|
|
||||||
package = lib.mkPackageOption pkgs "matrix-alertmanager-receiver" { };
|
|
||||||
|
|
||||||
configFile = lib.mkOption {
|
configFile = lib.mkOption {
|
||||||
type = lib.types.path;
|
type = lib.types.path;
|
||||||
default = "";
|
default = "";
|
||||||
|
@ -32,7 +30,7 @@ in
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
User = "matrix-alertmanager-receiver";
|
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