diff --git a/modules/common/configuration.nix b/modules/common/configuration.nix index 4ca2484..639ec21 100644 --- a/modules/common/configuration.nix +++ b/modules/common/configuration.nix @@ -5,13 +5,13 @@ let sudo nixos-rebuild switch \ --no-write-lock-file \ --refresh \ - --flake git+https://${vars.giteaDomain}/${vars.giteaRepoPath}.git#$(cat /etc/flake-target) + --flake git+https://${vars.giteaDomain}/${vars.giteaRepoPath}.git?dir=${vars.giteaRepoFlakePath}#$(cat /etc/flake-target) ''; testCmd = '' sudo nixos-rebuild test \ --no-write-lock-file \ --refresh \ - --flake git+https://${vars.giteaDomain}/${vars.giteaRepoPath}.git#$(cat /etc/flake-target) + --flake git+https://${vars.giteaDomain}/${vars.giteaRepoPath}.git?dir=${vars.giteaRepoFlakePath}#$(cat /etc/flake-target) ''; buildImageFn = '' buildImage() { diff --git a/variables.nix b/variables.nix index 3042ddc..d2fbbd0 100644 --- a/variables.nix +++ b/variables.nix @@ -7,7 +7,10 @@ rec { # Org/repo path within Gitea, combined with giteaDomain to form the # git+https:// URL used by Switch-nix / Test-nix. - giteaRepoPath = "beatzaplenty/nixos"; + giteaRepoPath = "beatzaplenty/infrastructure"; + + # internal repo path to flake + giteaRepoFlakePath = "nixos"; # ── Network ───────────────────────────────────────────────────────────────