diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 6aac8b59..1c9b7819 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -28,6 +28,7 @@ chromium.enable = true; }; chat = { + whatsapp.enable = true; }; apps = { nemo.enable = true; diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix index 91d24245..cfb2bf12 100644 --- a/modules/desktop/chat/default.nix +++ b/modules/desktop/chat/default.nix @@ -1,5 +1,6 @@ { imports = [ ./teams + ./whatsapp ]; } diff --git a/modules/desktop/chat/whatsapp/default.nix b/modules/desktop/chat/whatsapp/default.nix new file mode 100644 index 00000000..6ffd76b8 --- /dev/null +++ b/modules/desktop/chat/whatsapp/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.chat.whatsapp; +in +{ + options.modules.desktop.chat.whatsapp = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + whatsapp-for-linux + ]; + }; +}