Setup bot user on oracles
This commit is contained in:
parent
61ac3881d4
commit
6c95b934fa
|
@ -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 = [
|
||||||
"**/*~"
|
"**/*~"
|
||||||
"*~"
|
"*~"
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Loading…
Reference in New Issue