Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
66 lines (58 loc) · 1.57 KB
/
Copy pathflake.nix
File metadata and controls
66 lines (58 loc) · 1.57 KB
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
58
59
60
61
62
63
64
65
66
{
description = "HITSZ OSA frontend flake";
inputs = {
self.submodules = true;
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
bun2nix = {
url = "github:nix-community/bun2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://hitszosa.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hitszosa.cachix.org-1:jszO2bo2i2x0/eRn5ZbvU72eFjyFM4kmSEdkVMqOpac="
];
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-linux"
"x86_64-linux"
];
perSystem =
{ system, pkgs, ... }:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.bun2nix.overlays.default
];
config = { };
};
devShells = {
default = pkgs.mkShell {
packages = with pkgs; [
bun
];
shellHook = ''
bun install --frozen-lockfile
'';
};
};
packages = {
landing = pkgs.callPackage ./default.nix { app = "landing"; };
mirrors = pkgs.callPackage ./default.nix { app = "mirrors"; };
};
};
};
}