Make discord parts of default associations

This commit is contained in:
Natsu Kagami 2025-03-14 11:50:06 +01:00
parent 1804a8e4a9
commit 14fc51fe18
Signed by: nki
GPG key ID: 55A032EB38B49ADB
4 changed files with 25 additions and 38 deletions

View file

@ -1,27 +0,0 @@
{ 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;
default = pkgs.discord;
description = "The base Discord package that will get patched";
};
package = mkOption {
type = types.package;
default = cfg.basePackage.override { nss = pkgs.nss_latest; };
description = "The actual package to use";
};
};
config = mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}