Compare commits
2 commits
56ca8bd17a
...
4b054cc0f8
Author | SHA1 | Date | |
---|---|---|---|
4b054cc0f8 | |||
1d0776eb52 |
7 changed files with 25 additions and 0 deletions
|
@ -23,6 +23,7 @@
|
||||||
interfaceName = "userspace-networking";
|
interfaceName = "userspace-networking";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
system.stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,6 +141,7 @@ in
|
||||||
PATH = [ "${pkgs.forgejo}/bin" ];
|
PATH = [ "${pkgs.forgejo}/bin" ];
|
||||||
GITEA_WORK_DIR = "/var/lib/gitea";
|
GITEA_WORK_DIR = "/var/lib/gitea";
|
||||||
};
|
};
|
||||||
|
system.stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
bindMounts = {
|
bindMounts = {
|
||||||
"/run/postgresql" = {
|
"/run/postgresql" = {
|
||||||
|
|
22
hosts/hub/apps/grafana.nix
Normal file
22
hosts/hub/apps/grafana.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{
|
||||||
|
services = {
|
||||||
|
grafana = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
auth.proxy = {
|
||||||
|
enabled = true;
|
||||||
|
header_name = "Remote-User";
|
||||||
|
headers = "Name:Remote-Name Email:Remote-Email Groups:Remote-Groups";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
caddy.virtualHosts."grafana.tailc50184.ts.net".extraConfig = ''
|
||||||
|
bind tailscale/grafana
|
||||||
|
forward_auth localhost:9091 {
|
||||||
|
uri /api/authz/forward-auth
|
||||||
|
copy_headers Remote-User Remote-Name Remote-Email Remote-Groups
|
||||||
|
}
|
||||||
|
reverse_proxy localhost:3000
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -67,6 +67,7 @@
|
||||||
exec nextcloud-occ "$@"
|
exec nextcloud-occ "$@"
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
|
system.stateVersion = "24.11";
|
||||||
};
|
};
|
||||||
# https://discourse.nixos.org/t/podman-docker-in-nixos-container-ideally-in-unprivileged-one/22909/12
|
# https://discourse.nixos.org/t/podman-docker-in-nixos-container-ideally-in-unprivileged-one/22909/12
|
||||||
additionalCapabilities = [
|
additionalCapabilities = [
|
||||||
|
|
0
hosts/hub/apps/prometheus.nix
Normal file
0
hosts/hub/apps/prometheus.nix
Normal file
0
roles/prometheus.nix
Normal file
0
roles/prometheus.nix
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue