From 9750b11eba4cad6e7246834ea10ff811b6fcf0ed Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:00:09 +0400 Subject: [PATCH] pidgin --- hosts/sakopc/configuration.nix | 1 + modules/desktop/chat/default.nix | 1 + modules/desktop/chat/pidgin/default.nix | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 modules/desktop/chat/pidgin/default.nix diff --git a/hosts/sakopc/configuration.nix b/hosts/sakopc/configuration.nix index cb472345..1000e9db 100644 --- a/hosts/sakopc/configuration.nix +++ b/hosts/sakopc/configuration.nix @@ -45,6 +45,7 @@ signal.enable = true; element.enable = true; gajim.enable = true; + pidgin.enable = true; }; game = { lutris.enable = true; diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index 75d157af..cb5feba1 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -9,5 +9,6 @@ ./cinny ./element ./gajim + ./pidgin ]; } diff --git a/modules/desktop/chat/pidgin/default.nix b/modules/desktop/chat/pidgin/default.nix new file mode 100644 index 00000000..ba3846b1 --- /dev/null +++ b/modules/desktop/chat/pidgin/default.nix @@ -0,0 +1,10 @@ +{ outputs, options, config, lib, pkgs, ... }: +let cfg = config.modules.desktop.chat.pidgin; +in { + options.modules.desktop.chat.pidgin = { enable = lib.mkEnableOption false; }; + + config = lib.mkIf cfg.enable { + users.users.sako.packages = with pkgs; + [ (pidgin-with-plugins.override { plugins = [ pidgin-otr ]; }) ]; + }; +}