new host and other things !
This commit is contained in:
parent
2546a8d08e
commit
1625a54459
12 changed files with 216 additions and 15 deletions
|
|
@ -8,24 +8,15 @@ let
|
|||
withVencord = true;
|
||||
};
|
||||
finalPackage =
|
||||
if cfg.equibop then pkgs.equibop else
|
||||
if cfg.vesktop then pkgs.vesktop else
|
||||
vanillaDiscordPackage;
|
||||
in {
|
||||
options.modules.software.distractions.discord = {
|
||||
enable = mkEnableOption "Enable Discord, a social messaging app";
|
||||
vesktop = mkEnableOption "Use Vesktop, an alternative Electron client with Vencord preinstalled";
|
||||
equibop = mkEnableOption "Use Equibop, a fork of Vesktop with Equicord preinstalled";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
{
|
||||
assertion = !(cfg.vesktop && cfg.equibop);
|
||||
message = "You must either enable Vesktop or Equibop, not both";
|
||||
}
|
||||
];
|
||||
|
||||
user.packages = [
|
||||
finalPackage
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue