Merge pull request #112125 from dotlambda/alerta

alerta: move to all-packages.nix and use buildPythonApplication
This commit is contained in:
Robert Schütz
2021-03-08 10:09:30 +01:00
committed by GitHub
6 changed files with 39 additions and 45 deletions
+2 -2
View File
@@ -95,13 +95,13 @@ in
ALERTA_SVR_CONF_FILE = alertaConf;
};
serviceConfig = {
ExecStart = "${pkgs.python36Packages.alerta-server}/bin/alertad run --port ${toString cfg.port} --host ${cfg.bind}";
ExecStart = "${pkgs.alerta-server}/bin/alertad run --port ${toString cfg.port} --host ${cfg.bind}";
User = "alerta";
Group = "alerta";
};
};
environment.systemPackages = [ pkgs.python36Packages.alerta ];
environment.systemPackages = [ pkgs.alerta ];
users.users.alerta = {
uid = config.ids.uids.alerta;