Migrate autoupdate tasks to strangerbot

This commit is contained in:
Nathan McCarty 2023-05-15 23:17:50 -04:00
parent 6c95b934fa
commit 3a5f177b24
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
1 changed files with 4 additions and 5 deletions

View File

@ -4,12 +4,12 @@ let
(builtins.readFile ../../scripts/gitea/update-repo.sh); (builtins.readFile ../../scripts/gitea/update-repo.sh);
environment = { environment = {
XDG_RUNTIME_DIR = "/tmp"; XDG_RUNTIME_DIR = "/tmp";
HOME = "/home/nathan"; HOME = "/home/strangerbot";
NIX_PATH = NIX_PATH =
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels"; "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels";
XDG_CONFIG_DIRS = XDG_CONFIG_DIRS =
"/home/nathan/.nix-profile/etc/xdg:/etc/profiles/per-user/nathan/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg"; "/etc/profiles/per-user/strangerbot/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg";
XDG_CONFIG_HOME = "/home/nathan/.config"; XDG_CONFIG_HOME = "/home/strangerbot/.config";
}; };
path = with pkgs; [ path = with pkgs; [
git git
@ -31,7 +31,7 @@ let
''; '';
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = "nathan"; User = "strangerbot";
Group = "users"; Group = "users";
}; };
}; };
@ -56,7 +56,6 @@ in lib.mkMerge [
}; };
home-manager.users."strangerbot" = { home-manager.users."strangerbot" = {
programs.git = { programs.git = {
enable = true;
userName = "Stranger Bot"; userName = "Stranger Bot";
userEmail = "bot@stranger.systems"; userEmail = "bot@stranger.systems";
extraConfig = { extraConfig = {