diff options
author | yushyin <yushyin@saga> | 2020-12-14 03:12:36 +0100 |
---|---|---|
committer | yushyin <yushyin@saga> | 2020-12-14 03:12:36 +0100 |
commit | 62f5b430569d8a52f1b136f4b858e380dd1c8da5 (patch) | |
tree | a4e1ec5c9c854adbeb9591b1f30eb990282d2642 | |
parent | 22d45795e8f7c8faf612ba50a3be93e733200aab (diff) | |
download | dotfiles-igor-62f5b430569d8a52f1b136f4b858e380dd1c8da5.tar.gz dotfiles-igor-62f5b430569d8a52f1b136f4b858e380dd1c8da5.tar.xz |
add work config
-rw-r--r-- | config.toml | 9 | ||||
-rw-r--r-- | git/config | 14 | ||||
-rw-r--r-- | git/package.toml | 3 | ||||
-rw-r--r-- | vaults/work.gpg | bin | 0 -> 202 bytes |
4 files changed, 23 insertions, 3 deletions
diff --git a/config.toml b/config.toml index a956a20..601044e 100644 --- a/config.toml +++ b/config.toml @@ -10,3 +10,12 @@ packages = ['desktop-misc', 'herbstluftwm', 'mpv'] [configurations.saga] dependencies = ['desktop'] + +[configurations.work] +pattern = '^inv1716\.smb' +dependencies = ['interactive'] + + [[configurations.work.vaults]] + path = './vaults/work.gpg' + type = 'shell' + command = 'gpg --batch --yes -o "${IGOR_OUTFILE}" -d "${IGOR_VAULT}"' @@ -76,5 +76,15 @@ Git::command_noisy(qw{push -d}, $re, $br); \ '" [user] - name = yushyin - email = yushyin@saga + name = <%= $secrets{dev}->{git}->{name} // 'yushyin' =%> + email = <%= $secrets{dev}->{git}->{email} // 'yushyin@saga' =%> + +<%= +do { +<<EOF +[http] + sslCAInfo = $secrets{dev}->{git}->{sslCAInfo} + emptyAuth = true +EOF +} if defined $secrets{dev}->{git}->{sslCAInfo} +=%> diff --git a/git/package.toml b/git/package.toml index 946ea2f..7fd7f77 100644 --- a/git/package.toml +++ b/git/package.toml @@ -1,3 +1,4 @@ -[[files]] +[[templates]] source = './config' dest = '~/.config/git/config' +delimiters = {open = '<%=', close = '=%>'} diff --git a/vaults/work.gpg b/vaults/work.gpg Binary files differnew file mode 100644 index 0000000..87f539c --- /dev/null +++ b/vaults/work.gpg |