New container for monitoring
This commit is contained in:
parent
6fb4eb236e
commit
c7ccbec7c0
4 changed files with 67 additions and 10 deletions
11
flake.nix
11
flake.nix
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
37
hosts/metrics/default.nix
Normal 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";
|
||||||
|
}
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue