Commit graph

1692 commits

Author SHA1 Message Date
Vincent Ambo
e3b4a370a2 chore(notmuch-config): Set work email as default
Office365 groups don't add required metadata to automatically
determine which sender should be used when replying to a mail.
2018-06-10 15:50:37 +02:00
Vincent Ambo
01f771fa2f chore(image): Bump version to 1.6.0
* kontemplate 1.6.0
* kubectl 1.10.4
2018-06-09 22:13:42 +02:00
Vincent Ambo
e9992aec0b chore(brew): Update Homebrew formula for 1.6.0 2018-06-09 22:13:42 +02:00
Vincent Ambo
3a688191af fix(build): Fix shebang in build-release.sh 2018-06-09 22:13:42 +02:00
Vincent Ambo
97bef90387 chore: Bump version to 1.6.0 2018-06-09 21:34:58 +02:00
Vincent Ambo
c91cb21f70 feat(templater): Support single-template resource sets
Supports resource sets in which the `path` is pointed at a single
template file.

The example has been updated with ... an example of this.

This closes #81.
2018-06-09 21:23:48 +02:00
Vincent Ambo
77ca5b47cf fix(context): Global values have precedence over defaults 2018-06-09 21:16:27 +02:00
Vincent Ambo
ae6d960df9 feat(context): Support loading import variables from absolute paths
This lets users specify the paths from which to import additional
variables using absolute paths in addition to relative paths.

This enables both loading of configuration files placed outside of the
resource set folder (if desired), as well as special use-cases such as
specifying `/dev/stdin` as an input path to read variables from
standard input.

This change supersedes #131
2018-06-09 20:21:29 +02:00
Vincent Ambo
141355f350 refactor(util): Use YAML parser for both JSON & YAML files
JSON is a subset of YAML and the previous detection logic is
unnecessary.
2018-06-09 20:21:29 +02:00
Vincent Ambo
b33c353233 refactor(context): Implement more explicit merging of variables
The hierarchy for loading variables was previously not expressed
explicitly.

This commit refactors the logic for merging variables to explicitly
set the different layers of variables as values on the context object
and merge them for each resource set in `mergeContextValues`.
2018-06-09 19:16:23 +02:00
Phillip Johnsen
5cf9d53e80 feat(context): allow explicit variables to be defined as argument
These changes allows variables to be defined when executing
`kontemplate` via one or more `--variable` arguments.

With this in place one can either define new variables or override
existing variables loaded from a file:

```
$ kontemplate apply --variable version=v1.0 example/fancy-app.yaml
```

This avoids the need to write variables into a temporary file that is
only needed to provide "external variables" into resource sets.

Closes https://github.com/tazjin/kontemplate/issues/122
2018-06-09 19:16:23 +02:00
Vincent Ambo
45432f9b34 fix(mail): Set mail-host-address variable from hostname 2018-06-08 15:14:22 +02:00
Vincent Ambo
d146f1089b feat(functions): Add M-x nixos-man
Opens the configuration.nix man page
2018-06-08 15:14:09 +02:00
Vincent Ambo
b80a567cdb feat(emacs): Install jq-mode 2018-06-08 00:13:27 +02:00
Vincent Ambo
f70a16f453 feat(mail): Add development list to notmuch jump shortcuts 2018-06-07 23:23:57 +02:00
Vincent Ambo
8ac9fac175 feat(mail): Tag development mailing list 2018-06-07 23:23:34 +02:00
Vincent Ambo
b304289de3 chore(rust): Remove flycheck-require
eglot uses flymake, which is bundled.
2018-06-06 23:33:22 +02:00
Vincent Ambo
8813e55555 feat(emacs): Add websocket lib (and remove flycheck) 2018-06-06 23:32:55 +02:00
Vincent Ambo
b607fa5e60 fix(mail): Let timer unit be wanted by timers.target 2018-06-06 21:16:03 +02:00
Vincent Ambo
9576f73526 fix(settings): Require password-store related libraries
These libraries are no longer auto-required because I don't actually
use the default ivy-pass anymore, just some helper functions from the
libs.
2018-06-06 21:05:58 +02:00
Vincent Ambo
c1c102665c fix(mail): Ensure MSMTP's sendmail binary is used for sending 2018-06-06 21:05:47 +02:00
Vincent Ambo
858895aad3 fix(offlineimaprc): offlineimap chokes on inline comments 2018-06-06 20:44:32 +02:00
Vincent Ambo
6ad7669930 fix(offlineimaprc): Set maxage=90 on GMail account 2018-06-06 20:42:35 +02:00
Vincent Ambo
8460fd5ec5 fix(mail): Move wantedBy setting to timer unit
It's not the (oneshot) service, it's the timer that needs to be
"enableable".
2018-06-06 20:42:15 +02:00
Vincent Ambo
9b5be54563 chore(pkgs): Remove Evolution 2018-06-06 20:42:07 +02:00
Vincent Ambo
8664bb7714 chore: Remove nixkpgs-mozilla submodule link 2018-06-06 16:35:46 +02:00
Vincent Ambo
e4f9255a3a chore: Remove .gitmodules
Mozilla overlay is no longer used.
2018-06-06 16:35:08 +02:00
Vincent Ambo
535eef9de3 docs(README): Update README
It was about time
2018-06-06 16:33:52 +02:00
Vincent Ambo
1239f26e8a feat(mail): Import email configuration into Nix
This moves my email configuration into NixOS, including the following
features:

1. Replaced the NixOS-builtin offlineimap user service with a custom
   one that runs notmuch-indexing as part of the systemd unit instead
   of a postsynchook, which is significantly more reliable.
2. Adds configuration for notmuch and its tagging.
3. Adds configuration for OfflineIMAP & MSMTP.

Relevant emacs configuration has also been added to my emacs.d
repository.
2018-06-06 16:26:24 +02:00
Vincent Ambo
969c007182 feat(pkgs): Add notmuch & msmtp to global system 2018-06-06 10:32:15 +02:00
Vincent Ambo
87cb47cc8e feat(adho): Add Wurst wifi 2018-06-06 10:32:09 +02:00
Vincent Ambo
ead3a70114 fix(mail): Only show unread messages in inbox count 2018-06-06 10:29:47 +02:00
Vincent Ambo
4f64ab2942 chore(mail): Rename file to match provides 2018-06-06 10:29:44 +02:00
Vincent Ambo
0806463a00 fix(mail): Add hack to "warm up" GPG agent before sending mail
This is required in order to let password lookups work correctly when
shelling out to password-store from MSMTP, as it won't be calling
pinentry correctly otherwise.
2018-06-06 10:22:06 +02:00
Vincent Ambo
66e86d2546 feat(functions): Add custom ivy-password-store function
The default `ivy-pass` function shells out to `pass` in such a way
that using pinentry with emacs doesn't work, causing EXWM to freeze
until `C-g` is hit, after which the password entry buffer pops up.

That was very inconvenient - however, the new auth-source integration
with pass works correctly and this commit introduces a new function
and bindings for using the same functionality as before but doing the
actual password-reading via auth-source.
2018-06-06 09:46:01 +02:00
Vincent Ambo
be8d47257f feat(settings): Enable new password-store auth-source 2018-06-06 09:45:47 +02:00
Vincent Ambo
fa63debbfb feat(mail): Add notmuch configuration to git
(should've done this earlier *cough*)
2018-06-06 09:19:55 +02:00
Vincent Ambo
2541d25fba feat(main): Emit output in chunks of max. 1000 records
Required by the Stackdriver API.
2018-06-05 15:24:03 +02:00
Vincent Ambo
4b9b7f2999 feat(rust): Use eglot instead of LSP-mode
See commit `6939aa9` in Nix configuration for more information.
2018-06-03 22:36:43 +02:00
Vincent Ambo
6939aa9b3d feat(emacs): Replace LSP-mode with eglot
LSP-mode in combination with the Rust language server does not really
work as RLS is extremely unstable.

This switches over to eglot, which automatically restarts RLS after
every crash. From initial testing it seems to be slightly less
annoying than the previous setup.
2018-06-03 22:35:34 +02:00
Vincent Ambo
ac527952ce refactor(nixos): Only load exwm-randr on adho
Last attempt to at least work around
https://github.com/ch11ng/exwm/issues/425 on one of my machines before
reverting to an old EXWM version.

If the randr module is responsible for this issue it will probably
still occur on the laptop and I'll eventually downgrade, but it may be
a clue for debugging it at some point in the future.
2018-06-03 18:20:40 +02:00
Vincent Ambo
2e637433c1 fix(bindings): Use avy-goto-line instead of ace-jump-line-mode 2018-06-01 17:08:28 +02:00
Vincent Ambo
91dac5f692 refactor(functions): Use display-line-numbers instead of linum 2018-06-01 17:07:46 +02:00
Vincent Ambo
59cd0bbd8b feat(pkgs): Cherry-pick emacs26 from nixpkgs master 2018-05-31 13:42:39 +02:00
Vincent Ambo
9eb3ce6d74 feat(pkgs): Install thinkfan 2018-05-31 13:37:26 +02:00
Vincent Ambo
ef638bfa20 feat(stackdriver): Add initial Stackdriver API type definitions 2018-05-28 22:24:32 +02:00
Vincent Ambo
0db4512df4 refactor(main): Simplify receiver
Departing from the initial approach. There's no reason to multithread
this for now.
2018-05-28 09:45:07 +02:00
Vincent Ambo
6793b25a67 feat(main): Implement receiver & flushing logic
The only thing missing for a 0.1 test run is the actual gRPC call to
Stackdriver.
2018-05-27 23:57:24 +02:00
Vincent Ambo
ba1d18985a feat(pkgs): Add systemd development libraries to system environment 2018-05-27 20:13:39 +02:00
Vincent Ambo
c7c831fddd feat(adho): Add Røverstaden wifi 2018-05-27 20:13:39 +02:00