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

@ -1,17 +0,0 @@
{ pkgs, ...}:
{
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" ];
};
};
}

View file

@ -2,6 +2,7 @@
config.modules = {
video.kdenlive.enable = true;
web.qutebrowser.enable = true;
web.webcord.enable = true;
gaming.lutris.enable = true;
desktop.sway = {
enable = true;

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

View file

@ -66,7 +66,6 @@
../home-manager/cli
] ++ (if hostConfig.desktop then
[
../home-manager/webcord.nix
../home-manager/firefox
../home-manager/foot.nix
../home-manager/zathura.nix