-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
37 lines (33 loc) · 991 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:nix-community/nixpkgs.lib";
};
outputs = inputs: let
# Use dependency injection instead of importing the
# lib function files directly
init = path: (import path {
lib = inputs.nixpkgs.lib;
flakeLib = lib;
});
lib = {
config.merge = init ./lib/config/merge.nix;
config.resolve = init ./lib/config/resolve.nix;
config.resolveFlat = init ./lib/config/resolve-flat.nix;
config.resolveByName = init ./lib/config/resolve-by-name.nix;
systems.darwin = init ./lib/systems/darwin.nix;
};
in {
flakeModule = init ./flake-module.nix;
lib = lib;
templates = {
minimal = {
path = ./templates/minimal;
description = "A basic flake demonstrating the usage of nix-machine in one file";
};
simple-macos = {
path = ./templates/simple-macos;
description = "The simplest viable template. Use this to start.";
};
};
};
}