tidied git related programs
This commit is contained in:
parent
27e78ea564
commit
dddb1906a6
5 changed files with 12 additions and 1 deletions
11
home/common/git/default.nix
Normal file
11
home/common/git/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
#./lazygit.nix
|
||||
#./gitsync.nix
|
||||
./git.nix
|
||||
];
|
||||
|
||||
}
|
||||
14
home/common/git/git.nix
Normal file
14
home/common/git/git.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
24
home/common/git/gitsync.nix
Normal file
24
home/common/git/gitsync.nix
Normal 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;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
17
home/common/git/lazygit.nix
Normal file
17
home/common/git/lazygit.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
settings = {
|
||||
gui.theme = {
|
||||
lightTheme = false;
|
||||
activeBorderColor = [ "blue" "bold" ];
|
||||
inactiveBorderColor = [ "black" ];
|
||||
selectedLineBgColor = [ "default" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue