helm/modules/desktop/apps/discord.nix
Henrik Lissner d5c807a4f9
Move to nixpkgs/master
For that 5.9.2 kernel goodness. Since I can track nixpkgs myself, I'm
using nixpkgs/master now (and twice, so I can track them at separate
rates).

Though, for now, nixpkgs == nixpkgs.unstable
2020-10-30 01:41:35 -04:00

19 lines
433 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.apps.discord;
in {
options.modules.desktop.apps.discord = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
# If not installed from the bleeding edge, Discord will sometimes
# soft-lock itself on a "there's an update for discord" screen.
unstable.discord
];
};
}