From 2a4b7cfc787cc2098ebd7ac1fb1088f51ede27d2 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:44:36 +0400 Subject: [PATCH] add signal --- hosts/sakopc/configuration.nix | 1 + modules/desktop/chat/default.nix | 1 + modules/desktop/chat/signal/default.nix | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 100644 modules/desktop/chat/signal/default.nix diff --git a/hosts/sakopc/configuration.nix b/hosts/sakopc/configuration.nix index 005b6caf..ece11279 100644 --- a/hosts/sakopc/configuration.nix +++ b/hosts/sakopc/configuration.nix @@ -41,6 +41,7 @@ teams.enable = true; telegram.enable = true; weechat.enable = true; + signal.enable = true; }; game = { lutris.enable = true; diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index 643211e6..55e57b35 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -6,5 +6,6 @@ ./discord ./telegram ./weechat + ./signal ]; } diff --git a/modules/desktop/chat/signal/default.nix b/modules/desktop/chat/signal/default.nix new file mode 100644 index 00000000..24af24f7 --- /dev/null +++ b/modules/desktop/chat/signal/default.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.chat.signal; +in { + options.modules.desktop.chat.signal = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + signal-desktop + ]; + }; +}