forked from DGNum/infrastructure
fix(netbox): pre-commit hooks are supposed to be run....
This commit is contained in:
parent
d673d014ad
commit
f61a8e56e2
4 changed files with 28 additions and 13 deletions
|
@ -1,9 +1,19 @@
|
|||
{ config, pkgs, sources, lib, ... }:
|
||||
{
|
||||
config,
|
||||
sources,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
EnvironmentFile = [ config.age.secrets."netbox-environment_file".path ];
|
||||
in
|
||||
|
||||
{
|
||||
services = {
|
||||
netbox = {
|
||||
enable = true;
|
||||
package = (import sources.nixos-unstable {}).pkgs.netbox_3_7;
|
||||
package = (import sources.nixos-unstable { }).pkgs.netbox_3_7;
|
||||
secretKeyFile = "/dev/null";
|
||||
listenAddress = "127.0.0.1";
|
||||
settings = {
|
||||
|
@ -34,16 +44,20 @@
|
|||
};
|
||||
};
|
||||
|
||||
systemd.services.netbox.serviceConfig = {
|
||||
TimeoutStartSec = 600;
|
||||
EnvironmentFile = config.age.secrets.netbox_env.path;
|
||||
};
|
||||
systemd.services = {
|
||||
netbox.serviceConfig = {
|
||||
inherit EnvironmentFile;
|
||||
|
||||
systemd.services.netbox-housekeeping.serviceConfig = {
|
||||
EnvironmentFile = config.age.secrets.netbox_env.path;
|
||||
};
|
||||
systemd.services.netbox-rq.serviceConfig = {
|
||||
EnvironmentFile = config.age.secrets.netbox_env.path;
|
||||
TimeoutStartSec = 600;
|
||||
};
|
||||
|
||||
netbox-housekeeping.serviceConfig = {
|
||||
inherit EnvironmentFile;
|
||||
};
|
||||
|
||||
netbox-rq.serviceConfig = {
|
||||
inherit EnvironmentFile;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.nginx.extraGroups = [ "netbox" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue