chore: some cleaning + logging implementation
This commit is contained in:
33
lib/constants.nix.template
Normal file
33
lib/constants.nix.template
Normal file
@@ -0,0 +1,33 @@
|
||||
let
|
||||
ip_prefix = "10.0.0.";
|
||||
in
|
||||
{
|
||||
# Centralizes the IP to the gateway for the containers.
|
||||
gateway_ip = "10.0.0.1";
|
||||
|
||||
# Builders for IP addresses, given a container id.
|
||||
ip_prefix = ip_prefix;
|
||||
cidr = "24";
|
||||
build_ip = id: "${ip_prefix}${toString id}";
|
||||
build_ip_cidr = id: "${ip_prefix}${toString id}/${cidr}";
|
||||
|
||||
loki_addr = "10.0.0.42:3100";
|
||||
prometheus_addr = "10.0.0.42:9090";
|
||||
reverse_proxy_addr = "10.0.0.50";
|
||||
|
||||
domains = {
|
||||
exposed = ".mydomain.tld";
|
||||
internal = ".local";
|
||||
};
|
||||
|
||||
# Your deployer's host
|
||||
master_login = "admin";
|
||||
master_htpasswd = "$2$10$pouet.pouet";
|
||||
master_public_ssh_key = "ssh-ed25519 [...] me@here";
|
||||
|
||||
# Default timezone for the containers
|
||||
default_tz = "UTC";
|
||||
|
||||
# NixOS template build name => see `ls nixos-template/tarball/`
|
||||
nixos_template_name = "nixos-image-lxc-proxmox-25.11pre-git-x86_64-linux";
|
||||
}
|
||||
Reference in New Issue
Block a user