-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
47 lines (45 loc) · 1.25 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
{
inputs = {
nixpkgs-23-11.url = "github:nixos/nixpkgs/nixos-23.11";
freckle.url = "git+ssh://[email protected]/freckle/flakes?dir=main";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
inputs:
inputs.flake-utils.lib.eachDefaultSystem (
system:
let
nixpkgsArgs = {
inherit system;
config = { };
};
nixpkgs-23-11 = import inputs.nixpkgs-23-11 nixpkgsArgs;
freckle = inputs.freckle.packages.${system};
in
rec {
packages = rec {
nodejs = freckle.nodejs-18-19-1;
prettier = freckle.prettier-default;
typescript = nixpkgs-23-11.typescript;
};
devShells.default = nixpkgs-23-11.mkShell {
name = "obisidian-browser-interface-extension";
buildInputs = with packages; [
nodejs
prettier
typescript
];
};
}
);
nixConfig = {
extra-substituters = [
"https://freckle.cachix.org"
"https://freckle-private.cachix.org"
];
extra-trusted-public-keys = [
"freckle.cachix.org-1:WnI1pZdwLf2vnP9Fx7OGbVSREqqi4HM2OhNjYmZ7odo="
"freckle-private.cachix.org-1:zbTfpeeq5YBCPOjheu0gLyVPVeM6K2dc1e8ei8fE0AI="
];
};
}