diff --git a/home/logistik/home.nix b/home/logistik/home.nix index 91e56c3..08e4c59 100644 --- a/home/logistik/home.nix +++ b/home/logistik/home.nix @@ -323,6 +323,7 @@ Unit = { Description = "Update home-manager configuration for ${hostname}"; After = "network-online.target"; + X-RestartIfChanged = false; }; Service = { Type = "oneshot"; @@ -331,7 +332,6 @@ echo "[$(${pkgs.coreutils}/bin/date)] Starting home-manager update for ${flakeConfig}..." - # Prüfe ob lokales Repo existiert if [ -d "/home/${config.home.username}/AZ-NIX" ]; then echo "Using local repository..." cd /home/${config.home.username}/AZ-NIX @@ -344,10 +344,10 @@ fi echo "[$(${pkgs.coreutils}/bin/date)] Update completed successfully" - pkill -15 chromium + ${pkgs.procps}/bin/pkill -15 chromium || true sleep 5 echo "Rebooting system..." - ${pkgs.systemd}/bin/systemctl reboot + ${pkgs.sudo}/bin/sudo ${pkgs.systemd}/bin/systemctl reboot ''}"; }; }; diff --git a/hosts/AZLT124-L/configuration.nix b/hosts/AZLT124-L/configuration.nix index 2aa4e56..8c4731c 100644 --- a/hosts/AZLT124-L/configuration.nix +++ b/hosts/AZLT124-L/configuration.nix @@ -98,7 +98,7 @@ services.fstrim.enable = true; # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; + networking.firewall.allowedTCPPorts = [8080]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false;