forked from c3d2/nix-config
grafana: flakify
This commit is contained in:
parent
44ded16352
commit
019c4487af
10
flake.nix
10
flake.nix
|
@ -73,6 +73,8 @@
|
|||
scrape-nixos-rebuild = mkDeploy "scrape" hostRegistry.hosts.scrape.ip4;
|
||||
|
||||
dn42-nixos-rebuild = mkDeploy "dn42" hostRegistry.hosts.dn42.ip4;
|
||||
|
||||
grafana-nixos-rebuild = mkDeploy "grafana" "grafana.hq.c3d2.de";
|
||||
});
|
||||
|
||||
nixosConfigurations = let
|
||||
|
@ -179,6 +181,14 @@
|
|||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
grafana = nixosSystem' {
|
||||
modules = [
|
||||
./lib/lxc-container.nix
|
||||
./hosts/containers/grafana
|
||||
];
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
nixosModules.c3d2 = import ./lib;
|
||||
|
|
|
@ -96,6 +96,10 @@ rec {
|
|||
dn42 = {
|
||||
ip4 = "172.22.99.253";
|
||||
};
|
||||
|
||||
grafana = {
|
||||
ip6 = "2a02:8106:208:5282:4042:fbff:fe4b:2de8";
|
||||
};
|
||||
};
|
||||
|
||||
hqGlobal = builtins.attrNames hosts;
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
{ config, pkgs, lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/profiles/minimal.nix")
|
||||
../../../lib
|
||||
../../../lib/lxc-container.nix
|
||||
../../../lib/shared.nix
|
||||
../../../lib/admins.nix
|
||||
];
|
||||
|
||||
c3d2.isInHq = false;
|
||||
c3d2.hq.interface = "eth0";
|
||||
|
||||
services.openssh.enable = true;
|
||||
# noXlibs breaks cairo:
|
||||
environment.noXlibs = false;
|
||||
|
||||
networking.hostName = "grafana";
|
||||
networking.useNetworkd = true;
|
||||
|
@ -28,10 +23,9 @@
|
|||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
agree = true;
|
||||
config = ''
|
||||
grafana.hq.c3d2.de
|
||||
proxy / localhost:3000
|
||||
reverse_proxy localhost:3000
|
||||
'';
|
||||
};
|
||||
services.grafana = {
|
||||
|
|
Loading…
Reference in New Issue