1{ inputs, ... }:
2{
3 nixpkgs.config = {
4 allowUnfree = true;
5 android_sdk.accept_license = true;
6 };
7
8 nix = {
9 # nixPath = ["nixpkgs = ${inputs.nixpkgs}"];
10 extraOptions = ''
11 warn-dirty = false
12 '';
13 channel.enable = false;
14
15 optimise = {
16 automatic = true;
17 };
18
19 settings = {
20 experimental-features = [
21 "nix-command"
22 "flakes"
23 ];
24 extra-nix-path = "nixpkgs=flake:nixpkgs";
25 substituters = [
26 "https://cache.nixos.org/?priority=10"
27
28 "https://nix-community.cachix.org"
29 # For haskell
30 "https://cache.iog.io"
31
32 ];
33 trusted-public-keys = [
34 "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
35 # For haskell
36 "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
37 ];
38 };
39 gc = {
40 automatic = true;
41 options = "--delete-older-than 7d";
42 };
43 };
44}