-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
57 lines (55 loc) · 1.37 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
description = "Moraxyc's NUR repository";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-parts.url = "github:hercules-ci/flake-parts";
nvfetcher = {
url = "github:berberman/nvfetcher";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
flake-parts,
nixpkgs,
nixpkgs-stable,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./flake-modules/commands.nix
];
systems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
flake = {
nixosModules = {
alist = import ./modules/alist.nix;
gost = import ./modules/gost.nix;
exloli-next = import ./modules/exloli-next.nix;
bark-server = import ./modules/bark-server.nix;
};
lib = import ./lib;
};
perSystem =
{
system,
pkgs,
inputs',
...
}:
{
packages = import ./pkgs/default.nix {
pkgs = import nixpkgs { inherit system; };
pkgs-stable = import nixpkgs-stable { inherit system; };
inherit inputs' system self;
};
formatter = pkgs.nixfmt-rfc-style;
};
};
}