-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
38 lines (33 loc) · 1.13 KB
/
flake.nix
File metadata and controls
38 lines (33 loc) · 1.13 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
{
inputs = {
# Submodules are supported in nix 2.27.0
self.submodules = true;
# nixos-unstable (use flakehub to avoid github api limit)
nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
snowfall-lib = {
url = "https://flakehub.com/f/snowfallorg/lib/*.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
# see: https://github.com/cachix/git-hooks.nix
pre-commit-hooks = {
url = "https://flakehub.com/f/cachix/git-hooks.nix/0.1.*.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
templates = {
java.description = "Java development environment";
kotlin.description = "Kotlin development environment";
nix.description = "Nix development environment";
nix-config.description = "NixOS configuration";
node.description = "Node.js development environment";
rust.description = "Rust development environment";
secrets.description = "Secrets file management";
};
defaultTemplate = inputs.self.templates.nix;
};
}