fix: repo reference for home-manager-update

This commit is contained in:
m3tm3re
2026-05-01 09:31:17 +02:00
parent 0b244fcf93
commit c231e1c60c

View File

@@ -347,7 +347,7 @@
# Der hostname wird zur Build-Zeit in das Script eingebettet
systemd.user.services.home-manager-update = let
flakeConfig = "${username}@${hostname}";
repoUrl = "git+https://git.az-gruppe.com/AZ-Intec-GmbH/AZ-NIX.git";
repoUrl = "git+https://git.az-gruppe.com/AZ-Intec-GmbH/AZ-PI.git";
in {
Unit = {
Description = "Update home-manager configuration for ${hostname}";
@@ -364,9 +364,9 @@
echo "[$(${pkgs.coreutils}/bin/date)] Starting home-manager update for ${flakeConfig}..."
if [ -d "/home/${config.home.username}/AZ-NIX" ]; then
if [ -d "/home/${config.home.username}/AZ-PI" ]; then
echo "Using local repository..."
cd /home/${config.home.username}/AZ-NIX
cd /home/${config.home.username}/AZ-PI
${pkgs.git}/bin/git pull
${pkgs.nix}/bin/nix run home-manager/release-25.11 -- switch --flake .#${flakeConfig}
else