Setup bot user on oracles

This commit is contained in:
Nathan McCarty 2023-05-15 23:09:55 -04:00
parent 61ac3881d4
commit 6c95b934fa
Signed by: thatonelutenist
SSH Key Fingerprint: SHA256:hwQEcmak9E6sdU9bXc98RHw/Xd1AhpB5HZT7ZSVJkRM
2 changed files with 20 additions and 2 deletions

View File

@ -34,8 +34,8 @@ with lib; {
programs.git = { programs.git = {
enable = true; enable = true;
package = pkgs.gitAndTools.gitFull; package = pkgs.gitAndTools.gitFull;
userName = "Nathan McCarty"; userName = lib.mkDefault "Nathan McCarty";
userEmail = "nathan@mccarty.io"; userEmail = lib.mkDefault "nathan@mccarty.io";
ignores = [ ignores = [
"**/*~" "**/*~"
"*~" "*~"

View File

@ -48,6 +48,24 @@ let
in lib.mkMerge [ in lib.mkMerge [
{ # Setup hosts for gitea automation { # Setup hosts for gitea automation
networking.hosts = { "100.99.69.14" = [ "git.stranger.systems" ]; }; networking.hosts = { "100.99.69.14" = [ "git.stranger.systems" ]; };
# Setup the bot user
users.users."strangerbot" = {
home = "/home/strangerbot";
description = "Stranger Bot";
isNormalUser = true;
};
home-manager.users."strangerbot" = {
programs.git = {
enable = true;
userName = "Stranger Bot";
userEmail = "bot@stranger.systems";
extraConfig = {
commit.gpgsign = true;
gpg.format = "ssh";
user.signingkey = "~/.ssh/id_ed25519.pub";
};
};
};
} }
(update-flake { (update-flake {
name = "system"; name = "system";