fix: repo reference for home-manager-update
This commit is contained in:
@@ -347,7 +347,7 @@
|
|||||||
# Der hostname wird zur Build-Zeit in das Script eingebettet
|
# Der hostname wird zur Build-Zeit in das Script eingebettet
|
||||||
systemd.user.services.home-manager-update = let
|
systemd.user.services.home-manager-update = let
|
||||||
flakeConfig = "${username}@${hostname}";
|
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 {
|
in {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "Update home-manager configuration for ${hostname}";
|
Description = "Update home-manager configuration for ${hostname}";
|
||||||
@@ -364,9 +364,9 @@
|
|||||||
|
|
||||||
echo "[$(${pkgs.coreutils}/bin/date)] Starting home-manager update for ${flakeConfig}..."
|
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..."
|
echo "Using local repository..."
|
||||||
cd /home/${config.home.username}/AZ-NIX
|
cd /home/${config.home.username}/AZ-PI
|
||||||
${pkgs.git}/bin/git pull
|
${pkgs.git}/bin/git pull
|
||||||
${pkgs.nix}/bin/nix run home-manager/release-25.11 -- switch --flake .#${flakeConfig}
|
${pkgs.nix}/bin/nix run home-manager/release-25.11 -- switch --flake .#${flakeConfig}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user