From a6588447a3c1e4c355b400375c5297ff1c06239f Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 18 Aug 2024 15:26:36 -0700 Subject: [PATCH] added domoticz --- flake.lock | 21 +-------------------- hosts/Alaska/default.nix | 1 + hosts/Alaska/modules/domoticz.nix | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 20 deletions(-) create mode 100644 hosts/Alaska/modules/domoticz.nix diff --git a/flake.lock b/flake.lock index 105a3c0..0a23845 100644 --- a/flake.lock +++ b/flake.lock @@ -17,7 +17,6 @@ "rev": "2ce1a06f9519c7d9ab7f17b036794eff1569925b", "type": "github" }, - "original": { "owner": "atuinsh", "repo": "atuin", @@ -225,24 +224,6 @@ "type": "github" } }, - "flake-utils_5": { - "inputs": { - "systems": "systems_5" - }, - "locked": { - "lastModified": 1710146030, - "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, "git-hooks": { "inputs": { "flake-compat": [ @@ -613,7 +594,7 @@ }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_5", + "flake-utils": "flake-utils_4", "nixpkgs": [ "nixvim", "nixpkgs" diff --git a/hosts/Alaska/default.nix b/hosts/Alaska/default.nix index 8e17f4e..3b9e504 100644 --- a/hosts/Alaska/default.nix +++ b/hosts/Alaska/default.nix @@ -9,6 +9,7 @@ ./configuration.nix ./hardware-configuration.nix ./modules/dnsmasq.nix + ./modules/domoticz.nix ./modules/firewall.nix ./modules/forgejo.nix ./modules/headscale.nix diff --git a/hosts/Alaska/modules/domoticz.nix b/hosts/Alaska/modules/domoticz.nix new file mode 100644 index 0000000..525b7d4 --- /dev/null +++ b/hosts/Alaska/modules/domoticz.nix @@ -0,0 +1,15 @@ +{ config, lib, pkgs, ... }: + +{ + services.domoticz = { + enable = true; + port = 8981; + bind = "0.0.0.0"; + }; + + networking.firewall = { + allowedTCPPorts = [8981]; + allowedUDPPorts = [8981]; + }; + +}