From c542b06c9d718da9ca5ec6b00bf5179e970ccbdb Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 28 Jan 2020 21:57:53 +0100 Subject: [PATCH] Move zeroconf section to networking --- configuration.nix | 11 ----------- modules/devops.nix | 4 ---- modules/networking.nix | 13 ++++++++++--- modules/webstack.nix | 4 ++++ 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3fa81a8..610c9b8 100644 --- a/configuration.nix +++ b/configuration.nix @@ -19,7 +19,6 @@ environment.systemPackages = with pkgs; [ raspberrypi-tools git - tmux htop vim ]; @@ -72,16 +71,6 @@ allowReboot = true; }; - # Enable zeroconf - services.avahi = { - enable = true; - nssmdns = true; - publish = { - enable = true; - userServices = true; - }; - }; - # Run Nix garbage collector daily nix.gc = { automatic = true; diff --git a/modules/devops.nix b/modules/devops.nix index 8a18228..0486421 100644 --- a/modules/devops.nix +++ b/modules/devops.nix @@ -20,8 +20,4 @@ dump.enable = true; appName = "Gitea"; }; - - # Restart nginx after startup - systemd.services.nginx.after = [ "gitea.service" ]; - } diff --git a/modules/networking.nix b/modules/networking.nix index d114dcb..58aaf7a 100644 --- a/modules/networking.nix +++ b/modules/networking.nix @@ -5,9 +5,16 @@ in { - environment.systemPackages = with pkgs; [ - ddclient - ]; + # Enable zeroconf + services.avahi = { + enable = true; + nssmdns = true; + publish = { + enable = true; + userServices = true; + }; + }; + # Dynamic DNS configuration services.ddclient = { diff --git a/modules/webstack.nix b/modules/webstack.nix index fa7a3bd..3edbf39 100644 --- a/modules/webstack.nix +++ b/modules/webstack.nix @@ -133,4 +133,8 @@ }; }; + + # Restart nginx after + systemd.services.nginx.after = [ "gitea.service" "syncthing.service" "miniflux.service" ]; + }