nix/hosts/metrics/default.nix

48 lines
818 B
Nix

{
config,
pkgs,
lib,
...
}:
{
age.secrets = {
tailscale-authKey.file = ../../secrets/tailscale-authKey.age;
cloudflare-tegola-apiKey = {
file = ../../secrets/cloudflare-tegola-apiKey.age;
mode = "440";
owner = config.services.caddy.user;
group = config.services.caddy.group;
};
};
my = {
utils.commons.enable = true;
networking.tailscale = {
enable = false;
exitNode = "vps";
authKeyFile = config.age.secrets.tailscale-authKey.path;
};
virtualisation = {
proxmox.enable = true;
};
};
time.timeZone = "Europe/Rome";
# Extra packages
environment.systemPackages = with pkgs; [ ];
services = {
openssh.enable = true;
prometheus = {
enable = true;
};
};
system.stateVersion = "24.05";
}