{ lib, config, pkgs, inputs, ... }: let homePath = "/srv/panoptes"; repoURL = "https://gitea.john-stream.com/john/loki-nix"; repoBranch = "reorg"; in { programs.git = { enable = true; extraConfig.credential.helper = "store --file ~/.git-credentials"; userName = "John Lancaster"; userEmail = "32917998+jsl12@users.noreply.github.com"; extraConfig.safe.directory = "${homePath}"; }; nixpkgs.config.allowUnfree = true; programs.home-manager.enable = true; home = { homeDirectory = "${homePath}"; packages = [ (pkgs.writeShellScriptBin "nfs" '' sudo nixos-rebuild switch --flake git+file://${homePath}#${hostname} '') (pkgs.writeShellScriptBin "init-panoptes" '' sudo -u git clone -b ${repoBranch} ${repoURL} /srv/panoptes '') git ]; }; systemd.user.startServices = "sd-switch"; }