feat: refactoring + system types

This commit is contained in:
Kat Inskip 2022-10-02 12:34:00 -07:00
parent a0f9d0ab48
commit 9794026f6c
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
36 changed files with 653 additions and 537 deletions

View file

@ -17,6 +17,10 @@
User root
'';
virtualisation.docker.enable = true;
environment.systemPackages = [ pkgs.docker-compose ];
nix.buildMachines = [ {
hostName = "daiyousei-build";
system = "aarch64-linux";

View file

@ -43,6 +43,13 @@
unit_system = "metric";
external_url = "https://home.gensokyo.zone";
};
frontend = {
themes = "!include_dir_merge_named themes";
};
powercalc = {
};
utility_meter = {
};
logger = {
default = "info";
};
@ -101,7 +108,6 @@
counter = {};
device_tracker = {};
energy = {};
frontend = {};
group = {};
history = {};
image = {};
@ -135,6 +141,7 @@
psycopg2
aiohomekit
securetar
(aiogithubapi.overrideAttrs (_: { doInstallCheck = false; }))
];
extraComponents = [
"zha"

View file

@ -21,6 +21,11 @@
field = "hass";
};
kw.secrets.variables.espresence-pass = {
path = "secrets/mosquitto";
field = "espresence";
};
secrets.files.z2m-pass = {
text = tf.variables.z2m-pass.ref;
owner = "mosquitto";
@ -39,6 +44,12 @@
group = "mosquitto";
};
secrets.files.espresence-pass = {
text = tf.variables.espresence-pass.ref;
owner = "mosquitto";
group = "mosquitto";
};
services.mosquitto = {
enable = true;
persistence = true;
@ -53,6 +64,12 @@
"readwrite #"
];
};
espresence = {
passwordFile = config.secrets.files.espresence-pass.path;
acl = [
"readwrite #"
];
};
systemd = {
passwordFile = config.secrets.files.systemd-pass.path;
acl = [