add weechat

This commit is contained in:
Sakooooo 2023-08-06 22:17:51 +03:00
parent 8e71170ebd
commit 59f786f408
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 26 additions and 5 deletions

View file

@ -41,6 +41,7 @@
};
chat = {
discord.enable = true;
weechat.enable = true;
};
game = {
wine.enable = true;

View file

@ -0,0 +1,21 @@
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.chat.weechat;
in {
options.modules.desktop.chat.weechat = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
weechat
];
};
}

View file

@ -1,5 +1,4 @@
{ inputs, ...}:
{
{inputs, ...}: {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../packages {pkgs = final;};