feat(mottarone): add glpi-agent
This commit is contained in:
parent
fd57aa3657
commit
385264fff4
2 changed files with 23 additions and 0 deletions
|
@ -9,6 +9,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./glpi-agent.nix
|
||||||
./urbackup.nix
|
./urbackup.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
22
systems/mottarone/glpi-agent.nix
Normal file
22
systems/mottarone/glpi-agent.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ 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