add missing files
This commit is contained in:
parent
220a4acd52
commit
00ad4d144b
2 changed files with 57 additions and 0 deletions
30
hosts/h001/mods/monitoring_agent.nix
Normal file
30
hosts/h001/mods/monitoring_agent.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
declaration = "services/monitoring/beszel-hub.nix";
|
||||||
|
nixpkgs = inputs.beszel-nixpkgs;
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
disabledModules = [ declaration ];
|
||||||
|
imports = [ "${nixpkgs}/nixos/modules/${declaration}" ];
|
||||||
|
config = {
|
||||||
|
services.beszel.agent = {
|
||||||
|
package = pkgs.beszel;
|
||||||
|
enable = true;
|
||||||
|
host = "100.64.0.13";
|
||||||
|
environment = {
|
||||||
|
LISTEN = "100.64.0.13:45876";
|
||||||
|
SYSTEM_NAME = config.networking.hostName;
|
||||||
|
TOKEN = "20208198-87c2-4bd1-ab09-b97c3b9c6a6e";
|
||||||
|
HUB_URL = "http://100.64.0.13:8090";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
27
hosts/h001/mods/monitoring_hub.nix
Normal file
27
hosts/h001/mods/monitoring_hub.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
declaration = "services/monitoring/beszel-hub.nix";
|
||||||
|
nixpkgs = inputs.beszel-nixpkgs;
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
disabledModules = [ declaration ];
|
||||||
|
imports = [ "${nixpkgs}/nixos/modules/${declaration}" ];
|
||||||
|
config = {
|
||||||
|
services.beszel.hub = {
|
||||||
|
package = pkgs.beszel;
|
||||||
|
enable = true;
|
||||||
|
port = 8090;
|
||||||
|
host = "100.64.0.13";
|
||||||
|
environment = {
|
||||||
|
# DISABLE_PASSWORD_AUTH = "true"; # Once sso is setup
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue