Make discord parts of default associations
This commit is contained in:
parent
1804a8e4a9
commit
14fc51fe18
4 changed files with 25 additions and 38 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue