New container for monitoring

This commit is contained in:
pazpi 2024-08-29 09:19:46 +02:00
parent 6fb4eb236e
commit c7ccbec7c0
4 changed files with 67 additions and 10 deletions

View file

@ -74,8 +74,7 @@
deployment.targetUser = "pazpi"; deployment.targetUser = "pazpi";
}; };
arr = { arr.deployment = {
deployment = {
targetHost = "192.168.1.189"; targetHost = "192.168.1.189";
targetUser = lib.mkForce "root"; targetUser = lib.mkForce "root";
tags = [ tags = [
@ -83,6 +82,14 @@
"bacco" "bacco"
]; ];
}; };
metrics.deployment = {
targetHost = "192.168.1.152";
targetUser = lib.mkForce "root";
tags = [
"lxc"
"bacco"
];
}; };
deadbeef.deployment = { deadbeef.deployment = {

View file

@ -57,4 +57,17 @@ in
}; };
}; };
metrics = nixpkgs.lib.nixosSystem {
pkgs = pkgs "x86_64-linux";
modules = [
myModule
proxmoxModule
./metrics
agenix.nixosModules.default
];
specialArgs = {
# inherit nixvim nix-index-database;
};
};
} }

37
hosts/metrics/default.nix Normal file
View file

@ -0,0 +1,37 @@
{
config,
pkgs,
lib,
...
}:
{
my = {
utils.commons.enable = true;
networking.tailscale = {
enable = false;
exitNode = "vps";
# authKeyFile = builtins.toFile "authKey" ''${parameters.tailscaleAuthKey}'';
};
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";
}

View file

@ -76,7 +76,7 @@ let
in in
{ {
options.my.services.download-pod = { options.my.services.download-pod = {
enable = lib.mkEnableOption "Enable the download searcher stack"; enable = lib.mkEnableOption "Enable the download search stack";
proxy = { proxy = {
enable = lib.mkEnableOption "Enable proxy for the services"; enable = lib.mkEnableOption "Enable proxy for the services";