feat(mottarone): switch to glpi-agent module
This commit is contained in:
parent
7f144cf50a
commit
e4fad165aa
2 changed files with 10 additions and 23 deletions
|
@ -9,7 +9,6 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./glpi-agent.nix
|
|
||||||
./urbackup.nix
|
./urbackup.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -36,6 +35,16 @@ in
|
||||||
dnsovertls = "false";
|
dnsovertls = "false";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
glpiAgent = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
server = "https://assistance.sciencespo-lyon.fr";
|
||||||
|
delaytime = 3600;
|
||||||
|
lazy = 0;
|
||||||
|
logger = "stderr";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
postgresql.enable = true;
|
postgresql.enable = true;
|
||||||
pgadmin = {
|
pgadmin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
{ lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = [ pkgs.glpi-agent ];
|
|
||||||
|
|
||||||
systemd.services."glpi-agent" = {
|
|
||||||
description = "GLPI agent";
|
|
||||||
after = [
|
|
||||||
"syslog.target"
|
|
||||||
"network.target"
|
|
||||||
];
|
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
|
|
||||||
serviceConfig = {
|
|
||||||
ExecStart = "${lib.getExe pkgs.glpi-agent} --conf-file /etc/glpi-agent/agent.cfg --vardir /var/lib/glpi-agent --daemon --no-fork";
|
|
||||||
ExecReload = "kill -HUP $MAINPID";
|
|
||||||
CapabilityBoundingSet = "~CAP_SYS_PTRACE";
|
|
||||||
|
|
||||||
StateDirectory = "glpi-agent";
|
|
||||||
WorkingDirectory = "/var/lib/glpi-agent";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue