Skip to content

Commit 055aa8b

Browse files
committed
pull out non-service config from services-block
1 parent 259724d commit 055aa8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nixos-modules/profiles/smarthome.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ in
99
enable = mkEnableOption "Enable monitoring";
1010
};
1111
config = mkIf cfg.enable {
12+
systemd.services.node-red.environment.NODE_PATH =
13+
"${pkgs.nodePackages.passport-openidconnect}/lib/node_modules";
14+
networking.firewall.enable = false;
1215
services = {
1316
mosquitto = {
1417
enable = true;
@@ -52,8 +55,6 @@ in
5255
withNpmAndGcc = true;
5356
configFile = ./nodered-settings.js;
5457
};
55-
systemd.services.node-red.environment.NODE_PATH =
56-
"${pkgs.nodePackages.passport-openidconnect}/lib/node_modules";
5758

5859
# TODO Run hass after postgres has started
5960
home-assistant = {
@@ -107,7 +108,6 @@ in
107108
targets = [ "127.0.0.1:${toString config.services.home-assistant.config.http.server_port}" ];
108109
}];
109110
}];
110-
networking.firewall.enable = false;
111111
postgresql = {
112112
enable = true;
113113
ensureDatabases = [ "hass" ];

0 commit comments

Comments
 (0)