variables again

This commit is contained in:
John Lancaster
2024-12-08 16:36:08 -06:00
parent d22763540a
commit 7a1a40c2ae

View File

@@ -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
];