-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
32 lines (29 loc) · 1 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
{
description = "terranix examples";
outputs = { self }: {
templates = {
# nix flake init -t github:terranix/terranix-examples#aws-nixos-server
aws-nixos-server = {
path = ./aws-nixos-server;
description = "deploy an nixos machine as ec2 on aws";
};
# nix flake init -t github:terranix/terranix-examples#flake
flake = {
path = ./flake;
description = "shows how to use nix flakes and terranix";
};
# nix flake init -t github:terranix/terranix-examples#module
module = {
path = ./module;
description = "shows how to crate a terranix module and including flake.nix";
};
# nix flake init -t github:terranix/terranix-examples#hcloud-nixos-server
hcloud-nixos-server = {
path = ./hcloud-nixos-server;
description = "deploy an nixos machine on hcloud using nixinfect";
};
};
# nix flake init -t github:terranix/terranix-examples
defaultTemplate = self.templates.flake;
};
}