fix(netbox): pre-commit hooks are supposed to be run....
All checks were successful
build configuration / build_vault01 (push) Successful in 58s
build configuration / build_storage01 (push) Successful in 1m3s
build configuration / build_compute01 (push) Successful in 1m21s
build configuration / build_web01 (push) Successful in 1m35s
lint / check (push) Successful in 22s
build configuration / build_web02 (push) Successful in 49s
build configuration / build_rescue01 (push) Successful in 49s
All checks were successful
build configuration / build_vault01 (push) Successful in 58s
build configuration / build_storage01 (push) Successful in 1m3s
build configuration / build_compute01 (push) Successful in 1m21s
build configuration / build_web01 (push) Successful in 1m35s
lint / check (push) Successful in 22s
build configuration / build_web02 (push) Successful in 49s
build configuration / build_rescue01 (push) Successful in 49s
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 = {
|
services = {
|
||||||
netbox = {
|
netbox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = (import sources.nixos-unstable {}).pkgs.netbox_3_7;
|
package = (import sources.nixos-unstable { }).pkgs.netbox_3_7;
|
||||||
secretKeyFile = "/dev/null";
|
secretKeyFile = "/dev/null";
|
||||||
listenAddress = "127.0.0.1";
|
listenAddress = "127.0.0.1";
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -34,16 +44,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.netbox.serviceConfig = {
|
systemd.services = {
|
||||||
TimeoutStartSec = 600;
|
netbox.serviceConfig = {
|
||||||
EnvironmentFile = config.age.secrets.netbox_env.path;
|
inherit EnvironmentFile;
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.netbox-housekeeping.serviceConfig = {
|
TimeoutStartSec = 600;
|
||||||
EnvironmentFile = config.age.secrets.netbox_env.path;
|
};
|
||||||
};
|
|
||||||
systemd.services.netbox-rq.serviceConfig = {
|
netbox-housekeeping.serviceConfig = {
|
||||||
EnvironmentFile = config.age.secrets.netbox_env.path;
|
inherit EnvironmentFile;
|
||||||
|
};
|
||||||
|
|
||||||
|
netbox-rq.serviceConfig = {
|
||||||
|
inherit EnvironmentFile;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.nginx.extraGroups = [ "netbox" ];
|
users.users.nginx.extraGroups = [ "netbox" ];
|
||||||
|
|
|
@ -7,7 +7,7 @@ lib.setDefault { inherit publicKeys; } [
|
||||||
"bupstash-put_key"
|
"bupstash-put_key"
|
||||||
"matterbridge-config_file"
|
"matterbridge-config_file"
|
||||||
"named-bind_dnskeys_conf"
|
"named-bind_dnskeys_conf"
|
||||||
"netbox_env"
|
"netbox-environment_file"
|
||||||
"ntfy_sh-environment_file"
|
"ntfy_sh-environment_file"
|
||||||
"plausible_admin-user-password-file"
|
"plausible_admin-user-password-file"
|
||||||
"plausible_secret-key-base-file"
|
"plausible_secret-key-base-file"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"nixos-23.11" = [
|
"nixos-23.11" = [
|
||||||
{ _type = "static";
|
{
|
||||||
|
_type = "static";
|
||||||
path = ./netbox.patch;
|
path = ./netbox.patch;
|
||||||
}
|
}
|
||||||
# castopod: 1.6.4 -> 1.7.0 + ajout du support de loadcredentials
|
# castopod: 1.6.4 -> 1.7.0 + ajout du support de loadcredentials
|
||||||
|
|
Loading…
Reference in a new issue