tidied git related programs

This commit is contained in:
serenity-F 2024-11-17 21:06:34 +10:00
parent 27e78ea564
commit dddb1906a6
No known key found for this signature in database
5 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
{ ... }:
{
imports = [
#./lazygit.nix
#./gitsync.nix
./git.nix
];
}

14
home/common/git/git.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, config, ... }:
{
programs.git = {
enable = true;
userName = "serenity-F";
userEmail = "serenity-F@noreply.codeberg.org";
extraConfig = {
init.defaultBranch = "main";
# Automatically track remote branch
push.autoSetupRemote = true;
};
};
}

View file

@ -0,0 +1,24 @@
{ ... }:
{
#systemd.tmpfiles.rules = [
#" d ~/sync/organisation 0755 serenity users"
#];
services.git-sync = {
enable = true;
#package = [ ];
repositories = {
organisation-sync = {
interval = 75000;
url = "https://codeberg.org/serenity-F/organisation-sync.git";
path = "~/sync/organisation";
#extraPackages = pkgs.blank;
};
};
};
}

View file

@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
{
programs.lazygit = {
enable = true;
settings = {
gui.theme = {
lightTheme = false;
activeBorderColor = [ "blue" "bold" ];
inactiveBorderColor = [ "black" ];
selectedLineBgColor = [ "default" ];
};
};
};
}