-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
flake.nix
165 lines (136 loc) · 4.61 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
description = "A collection of flake templates";
outputs = { self }: {
templates = {
trivial = {
path = ./trivial;
description = "A very basic flake";
};
simpleContainer = {
path = ./simple-container;
description = "A NixOS container running apache-httpd";
};
python = {
path = ./python;
description = "Python template, using poetry2nix";
welcomeText = ''
# Getting started
- Run `nix develop`
- Run `poetry run python -m sample_package`
'';
};
rust = {
path = ./rust;
description = "Rust template, using Naersk";
};
bash-hello = {
path = ./bash-hello;
description = "An over-engineered Hello World in bash";
};
c-hello = {
path = ./c-hello;
description = "An over-engineered Hello World in C";
};
ruby = {
path = ./ruby;
description = "Flake for building ruby gems" ;
welcomeText = ''
# Simple Ruby Gem Template
## Intended usage
The intended usage of this flake is to facilitate building ruby gems
## More info
- [Ruby language](https://www.ruby-lang.org/)
- [Ruby in the NixOS manual](https://nixos.org/manual/nixpkgs/stable/#sec-language-ruby)
'';
};
rust-web-server = {
path = ./rust-web-server;
description = "A Rust web server including a NixOS module";
};
compat = {
path = ./compat;
description = "A default.nix and shell.nix for backward compatibility with Nix installations that don't support flakes";
};
haskell-hello = {
path = ./haskell-hello;
description = "A Hello World in Haskell with one dependency";
};
hercules-ci = {
path = ./hercules-ci;
description = "An example for Hercules-CI, containing only the necessary attributes for adding to your project.";
};
full = {
path = ./full;
description = "A template that shows all standard flake outputs";
welcomeText = ''
You just created a template that will show you all standard flake outputs.
Read more about it here:
https://github.com/NixOS/templates/tree/master/full
'';
};
pandoc-xelatex = {
path = ./pandoc-xelatex;
description = "A report built with Pandoc, XeLaTex and a custom font";
};
latexmk = {
path = ./latexmk;
description = "A simple LaTeX template for writing documents with latexmk";
};
go-hello = {
path = ./go-hello;
description = "A simple Go package";
};
empty = {
path = ./empty;
description = "A flake with no outputs";
};
haskell-nix = {
path = ./haskell.nix;
description = "An haskell.nix template using hix";
welcomeText = ''
You just created an haskell.nix template using hix. Read more about it here:
https://input-output-hk.github.io/haskell.nix/tutorials/getting-started-flakes.html
'';
};
haskell-flake = {
path = ./haskell-flake;
description = "A haskell-flake template";
welcomeText = ''
You just created a haskell-flake template.
See the README or https://github.com/srid/haskell-flake.
'';
};
utils-generic = {
path = ./utils-generic;
description = "Simple, all-rounder template with utils enabled and devShell populated";
};
dotnet = {
path = ./dotnet;
description = "A .NET application and test project";
};
typescript-pnpm = {
path = ./typescript/pnpm;
description = "A template combining a node webserver and a dev environment
for frontend typescript development";
welcomeText = ''
# Getting Started
- run `nix develop` to enter the development environment
- run `pnpm install` to install the packaged
- run `pnpm start` to open a live reloading website
'';
};
typescript-p5js = {
path = ./typescript/pnpm-p5js;
description = "A template combining a node webserver and a dev environment
for frontend typescript development";
welcomeText = ''
# Getting Started
- run `nix develop` to enter the development environment
- run `pnpm install` to install the packaged
- run `pnpm start` to open a live reloading website
'';
};
};
defaultTemplate = self.templates.trivial;
};
}