Git : Move config to nix.
This commit is contained in:
parent
b0c5cdaf7d
commit
99d8c73c16
|
@ -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
|
||||
|
|
11
.config/linux/system/module/common/Git.nix
Normal file
11
.config/linux/system/module/common/Git.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.git = {
|
||||
enable = true;
|
||||
config = {
|
||||
credential.helper = "store";
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = true;
|
||||
push.autoSetupRemote = true;
|
||||
};
|
||||
};
|
||||
}
|
|
@ -10,7 +10,6 @@
|
|||
ffmpeg
|
||||
file
|
||||
gcc
|
||||
git
|
||||
gnome.gnome-tweaks
|
||||
gnumake
|
||||
gnused
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ environment, ... }: {
|
||||
environment.etc.wallpaper = {
|
||||
source = ../../../wallpaper;
|
||||
source = ../../../wallpaper; # TODO: Use a path relative to repo.
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[credential]
|
||||
helper = store
|
||||
[pull]
|
||||
rebase = true
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
[init]
|
||||
defaultBranch = main
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,7 +8,6 @@
|
|||
|
||||
# Git.
|
||||
!/.gitignore
|
||||
!/.gitconfig
|
||||
|
||||
# Editorconfig.
|
||||
!/.editorconfig
|
||||
|
|
Reference in a new issue