refactor services

This commit is contained in:
♥ Minnie ♥ 2024-01-21 21:00:06 +08:00
parent cd68967354
commit 8a999ac546
7 changed files with 36 additions and 31 deletions

View file

@ -24,5 +24,8 @@
};
mutableSettings = true;
};
environment.persistence."/persist" = {
directories = [ "/var/lib/AdGuardHome" ];
};
}

View file

@ -0,0 +1,10 @@
{ ... }:
{
imports = [
./traefik
./adguardhome.nix
./borgbackup.nix
./minecraft.nix
];
}

View file

@ -1,30 +0,0 @@
{ ... }:
{
# Home automation that puts local control and privacy first.
services.home-assistant = {
enable = true;
openFirewall = true;
extraComponents = [
# Components required to complete the onboarding
"esphome"
"met"
"radio_browser"
"adguard"
"jellyfin"
];
config = {
# Includes dependencies for a basic setup
# https://www.home-assistant.io/integrations/defaultoconfig/
default_config = {};
http = {
use_x_forwarded_for = true;
trusted_proxies = [
"192.168.1.102"
];
};
};
configDir = "/var/lib/home-assistant";
};
}

View file

@ -17,5 +17,8 @@
};
eula = true;
};
environment.persistence."/persist" = {
directories = [ "/var/lib/minecraft" ];
};
}

View file

@ -12,7 +12,7 @@
age.secrets.traefik = {
# Environment variables for cloudflare dns challenge
file = inputs.self + /secrets/traefik.age;
rekeyFile = ./environment.age;
owner = "traefik";
group = "traefik";
};
@ -135,5 +135,16 @@
};
};
};
# Persist our traefik data & logs
environment.persistence."/persist" = {
directories = [
"/var/lib/traefik"
];
files = [
"/var/log/traefik/traefik.log"
"/var/log/traefik/access.log"
];
};
}

View file

@ -0,0 +1,8 @@
age-encryption.org/v1
-> piv-p256 hdSnGw Ax4c4R1UyEN7x8q3SQiDS+kYoLKAerZH+j2kyR/cByA7
tsSTf2pPX8Wp3xlAhxWamG6KyzdECTq4QqZQHAsHggo
-> I<^myN@-grease
UcIo43Q7FhyPbAoGA0ACg0Qix5qUXF544ethgrmEkVmWPxNDWnSKrQQ/gIadKvVC
FCZ/aUVh0mx+U+EIUw
--- 4+CcK7G8toKWX6MH9g515WMwhJlkGpnhX9iwzJbvlU0
UtCäSfTTmq"6´´ÛŒ ô 7Óà)Ö°„Ѭa®e7¯³†ÑZ‡FG?k“y£)<29>WâàqVë\|5?o%®3È<33>DMxŒGϧ3iT¬S\Ýôð5À)Þ_„ÅÝ,¤ÐŒö`