Setup bot user on oracles
This commit is contained in:
parent
61ac3881d4
commit
6c95b934fa
|
@ -34,8 +34,8 @@ with lib; {
|
|||
programs.git = {
|
||||
enable = true;
|
||||
package = pkgs.gitAndTools.gitFull;
|
||||
userName = "Nathan McCarty";
|
||||
userEmail = "nathan@mccarty.io";
|
||||
userName = lib.mkDefault "Nathan McCarty";
|
||||
userEmail = lib.mkDefault "nathan@mccarty.io";
|
||||
ignores = [
|
||||
"**/*~"
|
||||
"*~"
|
||||
|
|
|
@ -48,6 +48,24 @@ let
|
|||
in lib.mkMerge [
|
||||
{ # Setup hosts for gitea automation
|
||||
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 {
|
||||
name = "system";
|
||||
|
|
Loading…
Reference in New Issue