-
Notifications
You must be signed in to change notification settings - Fork 12
/
flake.nix
53 lines (51 loc) · 1.37 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
# SPDX-FileCopyrightText: 2024 awesome-computercraft contributors
#
# SPDX-License-Identifier: MIT
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
systems.url = "github:nix-systems/default";
tomodachi94.url = "github:tomodachi94/dotfiles?dir=pkgs";
vale-packages = {
url = "github:errata-ai/packages";
flake = false;
};
};
outputs = { self, nixpkgs, tomodachi94, systems, vale-packages, ... } @ inputs:
let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
in
{
devShells = forEachSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShellNoCC {
packages = with pkgs; [
just
lychee
vale
doctoc
reuse
tomodachi94.packages.${system}.awesome-lint
];
shellHook = ''
rm -rf ./.vale/Google
ln -s ${vale-packages}/pkg/Google/Google ./.vale/Google
'';
};
});
};
nixConfig = {
trusted-substituters = [
"https://cache.nixos.org"
"https://tomodachi94.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"tomodachi94.cachix.org-1:E1WFk+SYPtq3FFO+NvDgsyciIHg8nHxB/z7qNfojxpI="
];
};
}