Skip to content

Commit

Permalink
lnl: move gitconfig to dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Sep 21, 2018
1 parent 6a1a826 commit b2d62a6
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions modules/examples/lnl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -412,36 +412,9 @@
# services.skhd.skhdConfig = builtins.readFile <dotfiles/skhd/skhdrc>;

# TODO: add module for per-user config, etc, ...
# environment.etc."per-user/lnl/gitconfig".text = builtins.readFile <dotfiles/git/gitconfig>;
system.activationScripts.extraUserActivation.text = "ln -sfn /etc/per-user/lnl/gitconfig ~/.gitconfig";

environment.etc."per-user/lnl/gitconfig".text = ''
[include]
path = .gitconfig.local
[core]
excludesfile = ~/.gitignore
autocrlf = input
[color]
ui = auto
[commit]
verbose = true
[pretty]
color = format:%C(yellow)%h%C(red)%d%Creset %s %C(green)%an, %ar%Creset
nocolor = format:%h%d %s %an, %ar
[rerere]
enabled = true
[user]
name = Daiderd Jordan
[github]
user = LnL7
'';

# You should generally set this to the total number of logical cores in your system.
# $ sysctl -n hw.ncpu
nix.maxJobs = 1;
Expand Down

0 comments on commit b2d62a6

Please sign in to comment.