-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (53 loc) · 1.52 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
{
description = "A modern music server focusing on metadata";
inputs = {
api = {
url = "github:accentor/api/v0.22.0";
inputs = {
devshell.follows = "devshell";
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
web = {
url = "github:accentor/web/v0.33.0";
inputs = {
devshell.follows = "devshell";
flake-utils.follows = "flake-utils";
nixpkgs.follows = "nixpkgs";
};
};
devshell = {
url = "github:numtide/devshell";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
flake-utils = {
url = "github:numtide/flake-utils";
};
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, api, web, devshell, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
(system: {
packages = {
accentor-api = api.packages.${system}.default;
accentor-web = web.packages.${system}.default;
};
devShell = let pkgs = import nixpkgs { inherit system; overlays = [ devshell.overlays.default ]; }; in
pkgs.devshell.mkShell {
name = "Accentor flake";
packages = [ pkgs.nixpkgs-fmt ];
};
}) // rec {
nixosModules = rec {
accentor = import ./default.nix;
default = accentor;
};
overlays.default = (self: super: {
accentor-api = api.packages.${self.system}.default;
accentor-web = web.packages.${self.system}.default;
});
};
}