mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-24 05:35:29 -08:00
Compare commits
No commits in common. "a13150440e6d074124c083b5c02d0d8d203452b4" and "a6588447a3c1e4c355b400375c5297ff1c06239f" have entirely different histories.
a13150440e
...
a6588447a3
5 changed files with 16 additions and 71 deletions
|
@ -9,12 +9,11 @@
|
|||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
./modules/dnsmasq.nix
|
||||
./modules/domoticz.nix
|
||||
./modules/firewall.nix
|
||||
./modules/forgejo.nix
|
||||
./modules/headscale.nix
|
||||
./modules/home-assistant.nix
|
||||
./modules/msmtp.nix
|
||||
./modules/mosquitto.nix
|
||||
./modules/nginx.nix
|
||||
./modules/nextcloud.nix
|
||||
./modules/nicks_nextcould_integrations.nix
|
||||
|
|
|
@ -24,9 +24,4 @@
|
|||
type = "A";
|
||||
value = "100.64.0.1";
|
||||
}
|
||||
{
|
||||
name = "home-assistant.nickiel.net";
|
||||
type = "A";
|
||||
value = "100.64.0.1";
|
||||
}
|
||||
]
|
||||
|
|
15
hosts/Alaska/modules/domoticz.nix
Normal file
15
hosts/Alaska/modules/domoticz.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.domoticz = {
|
||||
enable = true;
|
||||
port = 8981;
|
||||
bind = "0.0.0.0";
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [8981];
|
||||
allowedUDPPorts = [8981];
|
||||
};
|
||||
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
||||
# List extraComponents here to be installed. The names can be found here:
|
||||
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/home-assistant/component-packages.nix
|
||||
# Components listed here will be possible to add via the webUI if not
|
||||
# automatically picked up.
|
||||
extraComponents = [
|
||||
"tasmota"
|
||||
"history"
|
||||
"history_stats"
|
||||
"mqtt"
|
||||
];
|
||||
|
||||
extraPackages = python3Packages:
|
||||
with python3Packages; [
|
||||
numpy
|
||||
pyturbojpeg
|
||||
# psycopg2 # uncomment for recorder postgressql support
|
||||
];
|
||||
|
||||
config = {
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"home-assistant.nickiel.net" = {
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8123";
|
||||
proxyWebsockets = true;
|
||||
extraConfig = ''
|
||||
allow 100.64.0.0/16;
|
||||
allow 10.0.0.114;
|
||||
allow 127.0.0.1;
|
||||
deny all;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.mosquitto = {
|
||||
enable = true;
|
||||
listeners = [
|
||||
{
|
||||
acl = [ "pattern readwrite #" ];
|
||||
omitPasswordAuth = true;
|
||||
settings.allow_anonymous = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [ 1883 ];
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue