From 7a1a40c2aeca73db88a5fc41e69852ff08ec817b Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:36:08 -0600 Subject: [PATCH] variables again --- home.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 3ff625f..3d18cfa 100644 --- a/home.nix +++ b/home.nix @@ -7,6 +7,8 @@ }: let homePath = "/srv/panoptes"; + repoURL = "https://gitea.john-stream.com/john/loki-nix"; + repoBranch = "reorg"; in { programs.git = { @@ -27,7 +29,7 @@ in sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname} '') (pkgs.writeShellScriptBin "init-panoptes" '' - sudo -u git clone -b reorg https://gitea.john-stream.com/john/loki-nix /srv/panoptes + sudo -u git clone -b ${repoBranch} ${repoURL} /srv/panoptes '') git ];