Git : Move config to nix.

This commit is contained in:
Dmitry Voronin 2024-02-24 20:15:46 +03:00
parent b0c5cdaf7d
commit 99d8c73c16
6 changed files with 13 additions and 11 deletions

View file

@ -22,6 +22,7 @@
./module/common/Filesystem.nix
./module/common/Firefox.nix
./module/common/Firewall.nix
./module/common/Git.nix
./module/common/Kernel.nix
./module/common/Locale.nix
./module/common/Network.nix

View file

@ -0,0 +1,11 @@
{ pkgs, ... }: {
programs.git = {
enable = true;
config = {
credential.helper = "store";
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
};
};
}

View file

@ -10,7 +10,6 @@
ffmpeg
file
gcc
git
gnome.gnome-tweaks
gnumake
gnused

View file

@ -1,5 +1,5 @@
{ environment, ... }: {
environment.etc.wallpaper = {
source = ../../../wallpaper;
source = ../../../wallpaper; # TODO: Use a path relative to repo.
};
}

View file

@ -1,8 +0,0 @@
[credential]
helper = store
[pull]
rebase = true
[push]
autoSetupRemote = true
[init]
defaultBranch = main

1
.gitignore vendored
View file

@ -8,7 +8,6 @@
# Git.
!/.gitignore
!/.gitconfig
# Editorconfig.
!/.editorconfig