Added weechat.nix

This commit is contained in:
Craige McWhirter 2020-09-18 22:05:27 +10:00
parent c0f76e81c5
commit 9c2f233273
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
2 changed files with 35 additions and 7 deletions

View file

@ -18,6 +18,7 @@
../roles/nixpkgs-dev.nix # Nix pkgs dev tools
../roles/openssh.nix # Enable and configure openssh
../roles/qemu.nix # Qemu virtualisation
../roles/weechat.nix # Weechat environment
../roles/xmonad.nix # Xmonad desktop environment
../roles/yubikey.nix # Yubikey tooling
../secrets/craige.nix # Ssshhhhh!
@ -53,10 +54,6 @@
# List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [
aspell # Required for spell checking in weechat
aspellDicts.en # Required for spell checking in weechat
aspellDicts.en-computers # Required for spell checking in weechat
aspellDicts.en-science # Required for spell checking in weechat
bash
binutils
bluez-tools
@ -109,7 +106,6 @@
pythonFull
python27Packages.restview # ReStructuredText viewer
python37Packages.sphinx # A tool that makes it easy to create intelligent and beautifulul documentation for Python projects
python37Packages.websocket_client # Used by Slack plugin for weechat
radiotray-ng # Internet radio player
rdiff-backup # External backups
riot-desktop # A feature-rich client for Matrix.org
@ -132,8 +128,6 @@
unzip
vcsh
vgo2nix # Required for packaging Golang applications
weechat # Preferred instant messaging client
weechat-matrix-bridge # Matrix plugin for weechat
wget
xorg.xev
youtube-dl

34
roles/weechat.nix Normal file
View file

@ -0,0 +1,34 @@
# Weechat application configuration common to all hosts
{ config, pkgs, lib, ... }:
{
environment.systemPackages = with pkgs; [
aspell # Required for spell checking in weechat
aspellDicts.en # Required for spell checking in weechat
aspellDicts.en-computers # Required for spell checking in weechat
aspellDicts.en-science # Required for spell checking in weechat
(weechat.override {
configure = { availablePlugins, ... }: with weechatScripts; {
plugins = with availablePlugins; [
lua
perl
(python.withPackages (ps: with ps; [
dbus-python
websocket_client # Required by wee-slack
weechat-matrix # https://github.com/NixOS/nixpkgs/pull/79669#issuecomment-584249420
]))
];
scripts = [
wee-slack # A WeeChat plugin for Slack.com
weechat-autosort # Automatically or manually keep your buffers sorted
weechat-matrix # Weechat communication over the Matrix protocol
weechat-otr # WeeChat script for Off-the-Record messaging
];
};
})
weechatScripts.weechat-matrix # Weechat communication over the Matrix protocol
];
}