New container for monitoring
This commit is contained in:
parent
6fb4eb236e
commit
c7ccbec7c0
4 changed files with 67 additions and 10 deletions
|
|
@ -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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue