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; [
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;

View File

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

View File

@ -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 = {

View File

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