nix-home/home/modules/programs/discord.nix

28 lines
589 B
Nix
Raw Permalink Normal View History

2022-11-08 17:59:53 +00:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.nki.programs.discord;
in
{
options.nki.programs.discord = {
enable = mkEnableOption "Enable discord";
basePackage = mkOption {
type = types.package;
2023-06-11 05:20:43 +00:00
default = pkgs.discord;
2022-11-08 17:59:53 +00:00
description = "The base Discord package that will get patched";
};
package = mkOption {
type = types.package;
2023-02-05 13:52:20 +00:00
default = cfg.basePackage.override { nss = pkgs.nss_latest; };
2022-11-08 17:59:53 +00:00
description = "The actual package to use";
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}