-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
57 lines (48 loc) · 1.46 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 = "Geospatial NIX";
nixConfig = {
extra-substituters = [
"https://geonix-rolling.cachix.org"
];
extra-trusted-public-keys = [
"geonix-rolling.cachix.org-1:27FqadR8Jqcwl+OY7+JvhRJoWixjMwX8xrwc6kIBnDo="
];
bash-prompt = "\\[\\033[1m\\][geonix]\\[\\033\[m\\]\\040\\w >\\040";
};
inputs = {
geonix.url = "github:imincik/geospatial-nix.repo/latest";
geoenv = {
url = "github:imincik/geospatial-nix.env/latest";
inputs.nixpkgs.follows = "geonix/nixpkgs";
};
nixpkgs.follows = "geonix/nixpkgs";
nix2container = {
url = "github:nlewo/nix2container";
inputs.nixpkgs.follows = "geonix/nixpkgs";
};
mk-shell-bin.url = "github:rrbutani/nix-mk-shell-bin";
};
outputs = inputs@{ self, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.geoenv.flakeModule
];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.geonix.overlays.geonix self.overlays.custom ];
config.allowUnfree = true;
};
devenv.shells.default = {
imports = [
./geonix.nix
];
};
packages.geonixcli = inputs.geoenv.packages.${system}.geonixcli;
};
flake = {
overlays = import ./overlays.nix;
};
};
}