Add Webcord module

This commit is contained in:
Yorick Barbanneau 2023-12-26 02:58:45 +01:00
parent 8c62cc41d1
commit 19bab7fa61
4 changed files with 27 additions and 18 deletions

View file

@ -0,0 +1,26 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.web.webcord;
in
{
options.modules.web.webcord = {
enable = mkEnableOption "enable Lutris Gaming preservation platform";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
webcord
];
xdg.desktopEntries = {
webcord = {
name = "Webcord";
genericName = "Unofficial Discord client";
exec = "webcord --ozone-platform=wayland";
icon = "webcord";
terminal = false;
categories = [ "Application" "Network" "WebBrowser" ];
};
};
};
}