-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
101 lines (88 loc) · 2.71 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
{
inputs = {
# Should be updated from flake-pins: <https://github.com/akirak/flake-pins>
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
nix-filter.url = "github:numtide/nix-filter";
# Use a pinned version of Emacs executable
flake-pins = {
url = "github:akirak/flake-pins";
flake = false;
};
# Emacs Twist
org-babel.url = "github:emacs-twist/org-babel";
twist.url = "github:emacs-twist/twist.nix";
twist-overrides.url = "github:emacs-twist/overrides";
# Package registries for Twist
melpa = {
url = "github:melpa/melpa";
flake = false;
};
gnu-elpa = {
# Use a GitHub mirror for a higher availability
url = "github:elpa-mirrors/elpa";
# url = "git+https://git.savannah.gnu.org/git/emacs/elpa.git?ref=main";
flake = false;
};
nongnu-elpa = {
# Use a GitHub mirror for a higher availability
url = "github:elpa-mirrors/nongnu";
# url = "git+https://git.savannah.gnu.org/git/emacs/nongnu.git?ref=main";
flake = false;
};
# I do want to move the below inputs into a flake partition, but it looks
# impossible to handle the follows dependencies.
# Libraries for providing alternative formats of the config.
twist2elpa = {
url = "github:emacs-twist/twist2elpa";
inputs.twist.follows = "twist";
};
archiver.url = "github:emacs-twist/twist-archiver";
# Extra dependencies of this particular config which are not generally
# needed for twist itself.
flake-pins-pkgs = {
url = "github:akirak/flake-pins?dir=pkgs/cli-tools";
inputs.nixpkgs.follows = "nixpkgs";
};
tree-sitter-astro = {
url = "github:virchau13/tree-sitter-astro";
flake = false;
};
};
nixConfig = {
extra-substituters = [
"https://akirak.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"akirak.cachix.org-1:WJrEMdV1dYyALkOdp/kAECVZ6nAODY5URN05ITFHC+M="
];
};
outputs =
{
self,
nixpkgs,
flake-parts,
...
}@inputs:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
flake-parts.flakeModules.partitions
./flake-module.nix
];
systems = import inputs.systems;
partitions = {
checks = {
extraInputsFlake = ./partitions/checks;
module = {
imports = [ ./partitions/checks/flake-module.nix ];
};
};
};
partitionedAttrs = {
devShells = "checks";
};
};
}