Move zeroconf section to networking
This commit is contained in:
parent
1af6e07072
commit
c542b06c9d
|
@ -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;
|
||||
|
|
|
@ -20,8 +20,4 @@
|
|||
dump.enable = true;
|
||||
appName = "Gitea";
|
||||
};
|
||||
|
||||
# Restart nginx after startup
|
||||
systemd.services.nginx.after = [ "gitea.service" ];
|
||||
|
||||
}
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -133,4 +133,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
# Restart nginx after
|
||||
systemd.services.nginx.after = [ "gitea.service" "syncthing.service" "miniflux.service" ];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue