Skip to content

Instantly share code, notes, and snippets.

@cotrone
cotrone / agnoster-nix.zsh-theme
Created December 28, 2018 19:22 — forked from chisui/agnoster-nix.zsh-theme
zsh agonoster theme with nix-shell
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline

This is an attempt at a declarative secure-by-default weechat, as described in NixOS/nixpkgs#85080.

It depends on weechat 2.9 and should be workable in any distro. The configure directive ultimately is passed as a string to weechat-headless's --run-command flag.

This service:

  • Runs as a DynamicUser=
  • Has a safe (maybe) allowlist of commands that are allowed via the relay
  • Only has write access to a private /tmp, and /var/log/weechat-headless
  • Config (e.g. autojoin) via weechat is not supported and instead can only be passed via argv, --run-command.
  • Logs to stdout, and thus appears in journalctl.