This repository was archived by the owner on Aug 5, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathshell.nix
More file actions
38 lines (33 loc) · 1.14 KB
/
shell.nix
File metadata and controls
38 lines (33 loc) · 1.14 KB
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
{
perSystem = {
inputs',
config,
pkgs,
...
}: {
devShells.default = pkgs.mkShellNoCC {
name = "nyx";
meta.description = ''
The default development shell for my NixOS configuration
'';
# Set up pre-commit hooks when user enters the shell.
shellHook = ''
${config.pre-commit.installationScript}
'';
# Tell Direnv to shut up.
DIRENV_LOG_FORMAT = "";
# Receive packages from treefmt's configured devShell.
inputsFrom = [config.treefmt.build.devShell];
packages = [
# Packages provided by flake inputs
inputs'.agenix.packages.default # agenix CLI for secrets management
inputs'.deploy-rs.packages.default # deploy-rs CLI for easy deployments
# Packages provided by flake-parts modules
config.treefmt.build.wrapper # Quick formatting tree-wide with `treefmt`
# Packages from nixpkgs, for Nix, Flakes or local tools.
pkgs.git # flakes require Git to be installed, since this repo is version controlled
pkgs.nodejs # building ags and configuring eslint_d will require nodejs
];
};
};
}