generated from saicaca/fuwari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
68 lines (63 loc) · 2.32 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
64
65
66
67
68
# --- flake.nix
{
description = "(totally not a personal blog)";
inputs = {
# --- BASE DEPENDENCIES ---
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
# --- YOUR DEPENDENCIES ---
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
systems.url = "github:nix-systems/default";
treefmt-nix.url = "github:numtide/treefmt-nix";
gitignore-nix.url = "github:hercules-ci/gitignore.nix";
};
# NOTE Here you can add additional binary cache substituers that you trust.
# There are also some sensible default caches commented out that you
# might consider using, however, you are advised to doublecheck the keys.
nixConfig = {
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"pre-commit-hooks.cachix.org-1:Pkk3Panw5AW24TOv6kz3PvLhlH8puAsJTBbOPmBo7Rc="
"numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE="
"tsandrini.cachix.org-1:t0AzIUglIqwiY+vz/WRWXrOkDZN8TwY3gk+n+UDt4gw="
];
extra-substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org/"
"https://pre-commit-hooks.cachix.org/"
"https://numtide.cachix.org"
"https://tsandrini.cachix.org"
];
};
outputs =
inputs@{ flake-parts, ... }:
let
inherit (inputs.nixpkgs) lib;
inherit (import ./flake-parts/_bootstrap.nix { inherit lib; }) loadParts;
in
flake-parts.lib.mkFlake { inherit inputs; } {
# We recursively traverse all of the flakeModules in ./flake-parts and
# import only the final modules, meaning that you can have an arbitrary
# nested structure that suffices your needs. For example
#
# - ./flake-parts
# - modules/
# - nixos/
# - myNixosModule1.nix
# - myNixosModule2.nix
# - default.nix
# - home-manager/
# - myHomeModule1.nix
# - myHomeModule2.nix
# - default.nix
# - sharedModules.nix
# - pkgs/
# - myPackage1.nix
# - myPackage2.nix
# - default.nix
# - mySimpleModule.nix
# - _not_a_module.nix
imports = loadParts ./flake-parts;
};
}