variables again
This commit is contained in:
4
home.nix
4
home.nix
@@ -7,6 +7,8 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
homePath = "/srv/panoptes";
|
homePath = "/srv/panoptes";
|
||||||
|
repoURL = "https://gitea.john-stream.com/john/loki-nix";
|
||||||
|
repoBranch = "reorg";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
@@ -27,7 +29,7 @@ in
|
|||||||
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
|
sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname}
|
||||||
'')
|
'')
|
||||||
(pkgs.writeShellScriptBin "init-panoptes" ''
|
(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
|
git
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user