add whatsapp for linux

This commit is contained in:
Sakooooo 2023-09-11 11:30:41 +04:00
parent 26acd17638
commit a600f71548
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 18 additions and 0 deletions

View file

@ -28,6 +28,7 @@
chromium.enable = true; chromium.enable = true;
}; };
chat = { chat = {
whatsapp.enable = true;
}; };
apps = { apps = {
nemo.enable = true; nemo.enable = true;

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./teams ./teams
./whatsapp
]; ];
} }

View file

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