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 + ]; + }; +}