-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/glpi-agent: init #361759
base: master
Are you sure you want to change the base?
nixos/glpi-agent: init #361759
Conversation
22c6bd6
to
3965250
Compare
How to work :
|
Also this need a backport to 24.11 if is possible is tested and used on 24.11 |
9c7cfdf
to
9a03b8d
Compare
8dda0d2
to
43b340c
Compare
37e765f
to
fb92f51
Compare
c16f6c0
to
c5b2f65
Compare
c5b2f65
to
16f3fb1
Compare
a876968
to
ee36818
Compare
40757a5
to
4549bbd
Compare
6127a98
to
5d287e2
Compare
5d287e2
to
492d993
Compare
assertions = [ | ||
{ | ||
assertion = cfg.settings ? server; | ||
message = "GLPI Agent requires a server to be configured in settings.server"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should name the full option path here.
serviceConfig = { | ||
ExecStart = "${lib.getExe cfg.package} --conf-file ${configFile} --vardir ${cfg.stateDir} --daemon --no-fork"; | ||
Restart = "on-failure"; | ||
StateDirectory = "glpi-agent"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That conflicts with the stateDir option above, doesn't it?
serviceConfig = { | ||
ExecStart = "${lib.getExe cfg.package} --conf-file ${configFile} --vardir ${cfg.stateDir} --daemon --no-fork"; | ||
Restart = "on-failure"; | ||
StateDirectory = "glpi-agent"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That conflicts with the stateDir option above, doesn't it?
Fix : #361741
This PR is module for : #361746
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.