···
1
-
{ config, pkgs, lib, nixos-hardware, eilean, ... }:
1
+
{ config, pkgs, lib, nixos-hardware, nixpkgs, ... }:
···
networking.networkmanager.enable = true;
18
-
zones.${config.networking.domain} = {
19
-
soa.serial = lib.mkDefault 2018011626;
21
-
{ name = "@"; type = "A"; data = "127.0.0.1"; }
18
+
services.journald.extraConfig = ''
24
+
virtualHosts."http://shrew" = {
25
+
listenAddresses = [ "100.64.0.6" ];
26
+
extraConfig = "reverse_proxy http://127.0.0.1:15606";
29
-
# TODO make this zonefile derivation a config parameter `services.eilean.services.dns.zonefile`
30
-
# TODO add module in eilean for eon
31
-
zoneFile = "${import "${eilean}/modules/services/dns/zonefile.nix" { inherit pkgs config lib; zonename = config.networking.domain; zone = config.eilean.services.dns.zones.${config.networking.domain}; }}/${config.networking.domain}";
33
-
application = "tund";
30
+
services.zigbee2mqtt = {
35
+
server = "mqtt://shrew:1883";
36
+
user = "zigbee2mqtt";
40
+
port = "/dev/ttyUSB0";
44
+
url = "http://shrew";
46
+
homeassistant = true;
37
-
services.journald.extraConfig = ''
53
+
services.mosquitto = {
59
+
acl = [ "readwrite #" ];
60
+
hashedPassword = "$6$nuDIW/ZPVsrDHyBe$JffJJvvMG+nH8GH9V5h4FqJkU0nfiFkDzAsdYNTHeJMgBXEX9epPkQTUdLG9L47K54vMxm/+toeMAiKD63Dfkw==";
63
+
acl = [ "readwrite #" ];
64
+
hashedPassword = "$7$101$wGQZPdVdeW7iQFmH$bK/VOR6LXCLJKbb6M4PNeVptocjBAWXCLMtEU5fQNBr0Y5UAWlhVg8UAu4IkIXgnViI51NnhXKykdlWF63VkVQ==";
71
+
services.home-assistant = {
91
+
# Includes dependencies for a basic setup
92
+
# https://www.home-assistant.io/integrations/default_config/
93
+
default_config = {};
94
+
automation = "!include automations.yaml";
95
+
scene = "!include scenes.yaml";
97
+
use_x_forwarded_for = true;
98
+
trusted_proxies = [ "100.64.0.2" ];
100
+
google_assistant = {
101
+
project_id = "shrew-25325";
102
+
service_account = "!include SERVICE_ACCOUNT.JSON";
103
+
report_state = true;
104
+
exposed_domains = [ "switch" "light" ];
106
+
"light.room_bed_left" = {
108
+
aliases = [ "LEFT" ];
111
+
"switch.room_bed_right" = {
112
+
name = "BED_RIGHT";
113
+
aliases = [ "RIGHT" ];
116
+
"light.room_ceil" = {
118
+
aliases = [ "CEILING" ];
121
+
"switch.room_strip" = {
130
+
services.wyoming = {
131
+
faster-whisper.servers.en = {
134
+
uri = "tcp://0.0.0.0:10300";
136
+
piper.servers.en = {
138
+
voice = "en_GB-alba-medium";
139
+
uri = "tcp://0.0.0.0:10200";
143
+
uri = "tcp://0.0.0.0:10400";