about summary refs log tree commit diff
path: root/modules/nixos/discord.nix
blob: 69ab52551176c6913b3789fd63a90c15fda997cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  config,
  lib,
  pkgs,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.discord;
in {
  options.nixfiles.modules.discord.enable =
    mkEnableOption "Steam runtime";

  config = mkIf cfg.enable {
    nixfiles.modules.common.nix.allowedUnfreePackages = ["discord"];

    hm.home.packages = with pkgs; [
      (discord.override {
        withOpenASAR = false; # This doesnt work.
      })
    ];
  };
}

Consider giving Nix/NixOS a try! <3