Add main git config

This commit is contained in:
Jake Howard 2018-03-31 18:13:48 +01:00
parent 3619274e5f
commit b75af38998
2 changed files with 21 additions and 0 deletions

View file

@ -50,6 +50,15 @@ class config {
source => 'puppet:///modules/config/gitignore_global'
}
file { 'Git config':
ensure => file,
path => '/home/jake/.gitconfig',
mode => '0644',
owner => 'jake',
group => 'users',
content => template('config/gitconfig.conf.erb')
}
file { 'Rofi config directory':
ensure => directory,
mode => '0644',

View file

@ -0,0 +1,12 @@
[core]
excludesfile = ~/.config/.gitignore
[user]
name = Jake Howard
[include]
<% if @trusted['hostname'] == 'too-work' -%>
path = ~/.dotfiles/git/work.conf
<% else -%>
path = ~/.dotfiles/git/personal.conf
<% end -%>