about summary refs log tree commit diff
path: root/modules/nixos/discord.nix
blob: 190b5fc6002bdae935dbb524f1a0e124e65c24f8 (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 = true;
      })
    ];
  };
}

Consider giving Nix/NixOS a try! <3