refactor services
This commit is contained in:
parent
cd68967354
commit
8a999ac546
|
@ -24,5 +24,8 @@
|
|||
};
|
||||
mutableSettings = true;
|
||||
};
|
||||
environment.persistence."/persist" = {
|
||||
directories = [ "/var/lib/AdGuardHome" ];
|
||||
};
|
||||
}
|
||||
|
10
nixos/viridian/services/default.nix
Normal file
10
nixos/viridian/services/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./traefik
|
||||
./adguardhome.nix
|
||||
./borgbackup.nix
|
||||
./minecraft.nix
|
||||
];
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
@ -17,5 +17,8 @@
|
|||
};
|
||||
eula = true;
|
||||
};
|
||||
environment.persistence."/persist" = {
|
||||
directories = [ "/var/lib/minecraft" ];
|
||||
};
|
||||
}
|
||||
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
8
nixos/viridian/services/traefik/environment.age
Normal file
8
nixos/viridian/services/traefik/environment.age
Normal 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´Pó´ÛŒ‹ô7Óà)Ö°„Ѭa®e7¯³†ÑZ‡FG?k“y£)<29>WâàqVë\|5?o%®3È<33>DMxŒGϧ3iT¬S\Ýôð–5À)Þ_„–ÅÝ,¤ÐŒö`
|
Loading…
Reference in a new issue