-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
32 lines (29 loc) · 1.01 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
description = "Yet another Discord mod";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
flake-utils.url = "github:numtide/flake-utils";
pnpm2nix.url = "github:NotNite/pnpm2nix-nzbr";
};
outputs = { self, nixpkgs, flake-utils, pnpm2nix }:
let overlay = import ./nix/overlay.nix { inherit pnpm2nix; };
in flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ overlay ];
};
in {
# Don't use these unless you're testing things
packages.default = pkgs.moonlight-mod;
packages.moonlight-mod = pkgs.moonlight-mod;
packages.discord = pkgs.discord;
packages.discord-ptb = pkgs.discord-ptb;
packages.discord-canary = pkgs.discord-canary;
packages.discord-development = pkgs.discord-development;
}) // {
overlays.default = overlay;
homeModules.default = ./nix/home-manager.nix;
};
}