-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (38 loc) · 986 Bytes
/
flake.nix
File metadata and controls
44 lines (38 loc) · 986 Bytes
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
pre-commit-hooks = {
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
let
# TODO: write your own module loader with container support.
lib = inputs.snowfall-lib.mkLib {
# snowfall doc: https://snowfall.org/guides/lib/quickstart/
inherit inputs;
# root dir
src = ./.;
snowfall = {
namespace = "example";
meta = {
name = "example-flake";
title = "example' Nix Flakes";
};
};
};
in
lib.mkFlake {
channels-config = {
allowUnfree = true;
permittedInsecurePackages = [ ];
};
outputs-builder = channels: { formatter = channels.nixpkgs.nixfmt-rfc-style; };
};
}