fix builder stuff
This commit is contained in:
parent
90cff4f16a
commit
43998b73d7
5 changed files with 184 additions and 96 deletions
52
git.nix
52
git.nix
|
|
@ -14,35 +14,9 @@
|
|||
init.defaultBranch = "main";
|
||||
pull.rebase = true;
|
||||
push.autoSetupRemote = true;
|
||||
# Use SSH for GitHub
|
||||
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
||||
url."ssh://forgejo@git.axiomania.org:2222/".insteadOf = "https://git.axiomania.org/";
|
||||
};
|
||||
|
||||
# Delta - better diff viewer
|
||||
# delta = {
|
||||
# enable = true;
|
||||
# options = {
|
||||
# navigate = true;
|
||||
# light = false;
|
||||
# line-numbers = true;
|
||||
# };
|
||||
# };
|
||||
|
||||
# Aliases
|
||||
# aliases = {
|
||||
# co = "checkout";
|
||||
# br = "branch";
|
||||
# ci = "commit";
|
||||
# st = "status";
|
||||
# lg = "log --oneline --graph --decorate";
|
||||
# };
|
||||
|
||||
# SSH signing (for verified commits)
|
||||
# signing = {
|
||||
# key = "~/.ssh/id_ed25519.pub";
|
||||
# signByDefault = true;
|
||||
# };
|
||||
# extraConfig.gpg.format = "ssh";
|
||||
};
|
||||
|
||||
# ============================================================================
|
||||
|
|
@ -50,19 +24,29 @@
|
|||
# ============================================================================
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
package = pkgs-stable.openssh;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks = {
|
||||
"*" = {
|
||||
addKeysToAgent = "yes";
|
||||
serverAliveInterval = 60;
|
||||
controlMaster = "auto";
|
||||
controlPersist = "10m";
|
||||
};
|
||||
"github.com" = {
|
||||
host = "github.com";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
# Add more hosts as needed
|
||||
# "gitlab.com" = {
|
||||
# host = "gitlab.com";
|
||||
# identityFile = "~/.ssh/id_ed25519";
|
||||
# identitiesOnly = true;
|
||||
# };
|
||||
"git.axiomania.org" = {
|
||||
port = 2222;
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"vps" = {
|
||||
hostname = "178.104.15.221";
|
||||
user = "root";
|
||||
identityFile = "~/.ssh/id_ed25519";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue