-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
75 lines (69 loc) · 1.63 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
{
description = "scores";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nushell-syntax = {
type = "github";
owner = "stevenxxiu";
repo = "sublime_text_nushell";
flake = false;
};
};
outputs = {
nixpkgs,
nushell-syntax,
...
}: let
supportedSystems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forEachSupportedSystem = f:
nixpkgs.lib.genAttrs supportedSystems (system:
f {
pkgs = import nixpkgs {inherit system;};
});
in {
devShells = forEachSupportedSystem ({pkgs}: {
default = pkgs.mkShell {
FONTCONFIG_FILE = pkgs.makeFontsConf {
fontDirectories = [pkgs.freefont_ttf];
};
packages = with pkgs; [
deadnix
fd
flake-checker
gh
gyre-fonts
just
lilypond-unstable-with-fonts
lychee
nushell
pre-commit
python312Packages.pre-commit-hooks
ripgrep
statix
tinymist
tokei
typst
typst-lsp
typstyle
watchexec
zathura
zellij
];
shellHook = ''
bat_config_dir=".config/bat"
bat_syntax_dir="''${bat_config_dir}/syntaxes"
mkdir -p "''${bat_syntax_dir}"
cp ${nushell-syntax}/nushell.sublime-syntax \
"''${bat_syntax_dir}/nushell.sublime-syntax"
bat cache --build --source "''${bat_config_dir}"
pre-commit install --hook-type commit-msg
'';
};
});
};
}