Move zeroconf section to networking

This commit is contained in:
coolneng 2020-01-28 21:57:53 +01:00
parent 1af6e07072
commit c542b06c9d
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
4 changed files with 14 additions and 18 deletions

View File

@ -19,7 +19,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
raspberrypi-tools raspberrypi-tools
git git
tmux
htop htop
vim vim
]; ];
@ -72,16 +71,6 @@
allowReboot = true; allowReboot = true;
}; };
# Enable zeroconf
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
userServices = true;
};
};
# Run Nix garbage collector daily # Run Nix garbage collector daily
nix.gc = { nix.gc = {
automatic = true; automatic = true;

View File

@ -20,8 +20,4 @@
dump.enable = true; dump.enable = true;
appName = "Gitea"; appName = "Gitea";
}; };
# Restart nginx after startup
systemd.services.nginx.after = [ "gitea.service" ];
} }

View File

@ -5,9 +5,16 @@
in in
{ {
environment.systemPackages = with pkgs; [ # Enable zeroconf
ddclient services.avahi = {
]; enable = true;
nssmdns = true;
publish = {
enable = true;
userServices = true;
};
};
# Dynamic DNS configuration # Dynamic DNS configuration
services.ddclient = { services.ddclient = {

View File

@ -133,4 +133,8 @@
}; };
}; };
# Restart nginx after
systemd.services.nginx.after = [ "gitea.service" "syncthing.service" "miniflux.service" ];
} }