This commit is contained in:
John Lancaster
2024-12-09 19:50:42 -06:00
parent 76dbeeeff1
commit 75d9d5a76e
5 changed files with 79 additions and 96 deletions

View File

@@ -5,9 +5,10 @@
...
}:
let
homePath = "/srv/panoptes";
repoURL = "https://gitea.john-stream.com/john/loki-nix";
repoBranch = "reorg";
repoURL = "https://gitea.john-stream.com/john/panoptes-nix";
repoBranch = "main";
homePath = "/home/${userSettings.username}";
repoPath = "${homePath}/${systemSettings.hostName}";
in
{
nixpkgs.config.allowUnfree = true;
@@ -25,15 +26,18 @@ in
programs.ssh.enable = true;
home = {
stateVersion = "${systemSettings.stateVersion}";
username = "${userSettings.username}";
homeDirectory = "${homePath}";
packages = [
(pkgs.writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake ${homePath}#${hostName} --impure
packages = with pkgs; [
(writeShellScriptBin "nfs" ''
sudo nixos-rebuild switch --flake ${repoPath}#${systemSettings.hostName} --impure
'')
(pkgs.writeShellScriptBin "init-panoptes" ''
sudo -u git clone -b ${repoBranch} ${repoURL} /srv/panoptes
(writeShellScriptBin "init-panoptes" ''
sudo -u ${userSettings.username} git clone -b ${repoBranch} ${repoURL} ${repoPath}
'')
git
python313
];
};