-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
38 lines (33 loc) · 897 Bytes
/
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
{
description = "GPT4all cli project";
nixConfig = {
bash-prompt = "\[ aicli \\w \]$ ";
};
inputs = {
nixpkgs = {
# Author's favorite nixpkgs
url = "github:grwlf/nixpkgs/local17";
};
# litrepl = {
# url = "git+file:/home/grwlf/proj/litrepl.vim/";
# };
};
outputs = { self, nixpkgs }:
let
defaults = system : (import ./default.nix) {
pkgs = import nixpkgs { inherit system; };
revision = if self ? rev then self.rev else null;
};
defaults-x86_64 = defaults "x86_64-linux";
defaults-aarch64 = defaults "aarch64-linux";
in {
packages = {
x86_64-linux = defaults-x86_64;
aarch64-linux = defaults-aarch64;
};
devShells = {
x86_64-linux = { default = defaults-x86_64.shell; };
aarch64-linux = { default = defaults-aarch64.shell; };
};
};
}