reorg
This commit is contained in:
20
home.nix
20
home.nix
@@ -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
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user