{host}.fleet
-> {host}.wg.aciceri.dev
This commit is contained in:
parent
9677a6ca77
commit
cba0555c38
9 changed files with 23 additions and 24 deletions
|
@ -64,7 +64,7 @@
|
|||
};
|
||||
auto_sync = true;
|
||||
sync_frequency = "5m";
|
||||
sync_address = "http://sisko.fleet:8889";
|
||||
sync_address = "http://sisko.wg.aciceri.dev:8889";
|
||||
search_mode = "fuzzy";
|
||||
style = "compact";
|
||||
};
|
||||
|
|
|
@ -80,7 +80,6 @@ in
|
|||
time_zone = "Europe/Rome";
|
||||
temperature_unit = "C";
|
||||
external_url = "https://home.aciceri.dev";
|
||||
internal_url = "http://rock5b.fleet:8123";
|
||||
};
|
||||
logger.default = "WARNING";
|
||||
wake_on_lan = { };
|
||||
|
@ -89,7 +88,7 @@ in
|
|||
name = "Picard";
|
||||
platform = "wake_on_lan";
|
||||
mac = "74:56:3c:37:17:bd"; # this shouldn't be public
|
||||
host = "picard.fleet";
|
||||
host = "picard.wg.aciceri.dev";
|
||||
turn_off.service = "shell_command.turn_off_picard";
|
||||
}
|
||||
];
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
};
|
||||
|
||||
fileSystems."/mnt/nas" = {
|
||||
device = "sisko.fleet:/hd";
|
||||
device = "sisko.wg.aciceri.dev:/hd";
|
||||
fsType = "nfs";
|
||||
options = [
|
||||
"x-systemd.automount"
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
distributedBuilds = true;
|
||||
buildMachines =
|
||||
lib.lists.optional (config.networking.hostName == "picard") {
|
||||
hostName = "sisko.fleet";
|
||||
hostName = "sisko.wg.aciceri.dev";
|
||||
system = "aarch64-linux";
|
||||
maxJobs = 7;
|
||||
supportedFeatures = [
|
||||
|
|
|
@ -8,11 +8,11 @@ in
|
|||
pushgateway = {
|
||||
enable = true;
|
||||
web = {
|
||||
listen-address = "sisko.fleet:9094";
|
||||
listen-address = "sisko.wg.aciceri.dev:9094";
|
||||
};
|
||||
};
|
||||
checkConfig = false; # Otherwise it will fail because it cannot access bearer_token_file
|
||||
webExternalUrl = "https://status.aciceri.dev";
|
||||
webExternalUrl = "https://status.wg.aciceri.dev";
|
||||
globalConfig.scrape_interval = "10s";
|
||||
scrapeConfigs = [
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ in
|
|||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"sisko.fleet:${builtins.toString config.services.home-assistant.config.http.server_port}"
|
||||
"sisko.wg.aciceri.dev:${builtins.toString config.services.home-assistant.config.http.server_port}"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
@ -39,7 +39,7 @@ in
|
|||
job_name = "node";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9100") [
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9100") [
|
||||
"sisko"
|
||||
"picard"
|
||||
"kirk"
|
||||
|
@ -51,7 +51,7 @@ in
|
|||
job_name = "wireguard";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9586") [
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9586") [
|
||||
"picard"
|
||||
"kirk"
|
||||
];
|
||||
|
@ -62,7 +62,7 @@ in
|
|||
job_name = "zfs";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9134") [
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9134") [
|
||||
"picard"
|
||||
"kirk"
|
||||
];
|
||||
|
@ -73,7 +73,7 @@ in
|
|||
job_name = "restic";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9753") [ "sisko" ];
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9753") [ "sisko" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ in
|
|||
job_name = "postgres";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9187") [ "sisko" ];
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9187") [ "sisko" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ in
|
|||
job_name = "nginx";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9117") [ "sisko" ];
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9117") [ "sisko" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@ -97,7 +97,7 @@ in
|
|||
job_name = "smartctl";
|
||||
static_configs = [
|
||||
{
|
||||
targets = builtins.map (host: "${host}.fleet:9633") [
|
||||
targets = builtins.map (host: "${host}.wg.aciceri.dev:9633") [
|
||||
"sisko"
|
||||
"kirk"
|
||||
"picard"
|
||||
|
|
|
@ -12,7 +12,7 @@ let
|
|||
};
|
||||
clients = [
|
||||
{
|
||||
url = "http://sisko.fleet:${
|
||||
url = "http://sisko.wg.aciceri.dev:${
|
||||
builtins.toString config.services.loki.configuration.server.http_listen_port or 3100
|
||||
}/loki/api/v1/push";
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
services = {
|
||||
syncthing = {
|
||||
enable = true;
|
||||
guiAddress = "${config.networking.hostName}.fleet:8434";
|
||||
guiAddress = "${config.networking.hostName}.wg.aciceri.dev:8434";
|
||||
# TODO Use the home-manager module instead of the following conditions
|
||||
user = if config.networking.hostName == "sisko" then "syncthing" else "ccr";
|
||||
dataDir = if config.networking.hostName == "sisko" then "/mnt/hd/syncthing" else "/home/ccr";
|
||||
|
@ -16,25 +16,25 @@
|
|||
picard = {
|
||||
id = "XKSCJ46-EM6GIZ7-6ABQTZZ-ZRVWVFM-MJ3QNVG-F5EWHY5-ZUNYVSL-DA77YAG";
|
||||
addresses = [
|
||||
"tcp://picard.fleet"
|
||||
"tcp://picard.wg.aciceri.dev"
|
||||
];
|
||||
};
|
||||
sisko = {
|
||||
id = "QE6V7PR-VHMAHHS-GHD4ZI3-IBB7FEM-M6EQZBX-YFCWDAK-YCYL6VO-NNRMXQK";
|
||||
addresses = [
|
||||
"tcp://sisko.fleet"
|
||||
"tcp://sisko.wg.aciceri.dev"
|
||||
];
|
||||
};
|
||||
kirk = {
|
||||
id = "OVPXSCE-XFKCBJ2-A4SKJRI-DYBZ6CV-U2OFNA2-ALHOPW5-PPMHOIQ-5TG2HAJ";
|
||||
addresses = [
|
||||
"tcp://kirk.fleet"
|
||||
"tcp://kirk.wg.aciceri.dev"
|
||||
];
|
||||
};
|
||||
oneplus8t = {
|
||||
id = "KMB2YRF-DGTWU24-SLITU23-5TN7BMQ-6PFAQQZ-CZ7J2QL-PIGVBTU-VRFRMQV";
|
||||
addresses = [
|
||||
"tcp://oneplus8t.fleet"
|
||||
"tcp://oneplus8t.wg.aciceri.dev"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -27,6 +27,6 @@
|
|||
|
||||
networking.hosts = lib.mapAttrs' (hostname: vpnConfig: {
|
||||
name = vpnConfig.ip;
|
||||
value = [ "${hostname}.fleet" ];
|
||||
value = [ "${hostname}.wg.aciceri.dev" ];
|
||||
}) vpn;
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ host=${1-picard}
|
|||
|
||||
nixos-rebuild switch \
|
||||
--flake ".#${host}" \
|
||||
--target-host "root@${host}.fleet" \
|
||||
--build-host "root@${host}.fleet" \
|
||||
--target-host "root@${host}.wg.aciceri.dev" \
|
||||
--build-host "root@${host}.wg.aciceri.dev" \
|
||||
--option warn-dirty false \
|
||||
--fast \
|
||||
"${@:2}"
|
||||
|
|
Loading…
Add table
Reference in a new issue