-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
63 lines (57 loc) · 1.44 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
58
59
60
61
62
63
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{ self, nixpkgs, ... }:
let
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forEachSystem =
function:
nixpkgs.lib.genAttrs systems (
system:
function {
inherit system;
pkgs = nixpkgs.legacyPackages.${system};
}
);
in
{
devShells = forEachSystem (
{ pkgs, system }:
{
default = import ./shell.nix {
inherit pkgs system;
inherit (self.packages.${system}) catwalk;
};
}
);
formatter = forEachSystem ({ pkgs, ... }: pkgs.nixfmt-rfc-style);
packages = forEachSystem (
{ pkgs, system }:
let
pkgs' = import ./default.nix { inherit pkgs system; };
in
{
inherit (pkgs') catwalk;
default = self.packages.${system}.catwalk;
}
);
overlays.default = final: prev: import ./overlay.nix final prev;
};
nixConfig = {
extra-substituters = [
"https://catppuccin.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}