-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
60 lines (53 loc) · 1.64 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
{
description = "kleinweb/renovate-config";
inputs = {
nixpkgs.follows = "nixos-unstable";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-trunk.url = "github:NixOS/nixpkgs/master";
flake-parts.url = "github:hercules-ci/flake-parts";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
treefmt-nix.url = "github:numtide/treefmt-nix";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-darwin"
"aarch64-linux"
];
imports = [
inputs.pre-commit-hooks.flakeModule
inputs.treefmt-nix.flakeModule
./nix/devshells.nix
./nix/git-hooks.nix
./nix/treefmt.nix
];
perSystem =
{ inputs', system, ... }:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(_final: prev: {
biome = inputs'.nixpkgs-trunk.legacyPackages.biome;
just = inputs'.nixpkgs-trunk.legacyPackages.just;
})
];
};
};
};
nixConfig = {
extra-experimental-features = "nix-command flakes";
extra-substituters = [
"https://kleintu.cachix.org"
"https://dotfield.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"kleintu.cachix.org-1:NMaPJijd2bOo4ECoHaAbkUBESvPFj4qj5FgPy+6Hg2s="
"dotfield.cachix.org-1:b5H/ucY/9PDARWG9uWA87ZKWUBU+hnfF30amwiXiaNk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}