forked from NixOS/nixos-homepage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tt
147 lines (131 loc) · 4.48 KB
/
index.tt
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
[% BLOCK exampleBlock %]
<li>
<div class="clickable-whole">
<h2>[% title %]</h2>
<div class="demo-preview">
<div class="thumbnail">
[% INSERT "demos/${demo}.svg" %]
</div>
<a href="#asciinema-demo-[% demo %]" data-fullscreen-pane="-demo-[% demo %]"></a>
</div>
</div>
</li>
[% END %]
[% WRAPPER atHead %]
<link rel="alternate" type="application/rss+xml" title="RSS feed" href="/blog/announcements-rss.xml" />
[% END %]
[% WRAPPER atEnd %]
<script src="[% root %]js/asciinema-player.js"></script>
[% END %]
[% WRAPPER layout.tt handlesLayout=1 %]
<section class="wide-banner clickable-whole event-banner">
<div>
<div>
NixOS 23.05 <span class="-detailed">released.</span>
</div>
<div class="action">
<a target="_blank" href="[% root %]blog/announcements.html#nixos-23.05">Announcement</a>
</div>
</div>
</section>
<section class="home-hero">
<div>
<div class="blurb">
<h1>Reproducible builds <span>and deployments.</span></h1>
<p>
Nix is a tool that takes a unique approach to package management and
system configuration. Learn how to make reproducible, declarative and
reliable systems.
</p>
<div class="button-tray">
<a class="button -primary" href="[% root %]download.html">Download</a>
<a class="button" href="[% root %]learn.html">Get started</a>
</div>
</div>
[% PROCESS demoPreview demo="cover" %]
</div>
</section>
[% PROCESS demoPane demo="cover" %]
<section id="why-nix" class="home-whynix">
<div>
<ul class="whynix">
<li>
[% PROCESS svg path="site-styles/assets/gfx-landing-reproducible.svg" %]
<h2>Reproducible</h2>
<p>
Nix builds packages in isolation from each other. This ensures that they
are reproducible and don't have undeclared dependencies, so <strong>if a
package works on one machine, it will also work on another</strong>.
</p>
</li>
<li>
[% PROCESS svg path="site-styles/assets/gfx-landing-declarative.svg" %]
<h2>Declarative</h2>
<p>
Nix makes it <strong>trivial to share development and build
environments</strong> for your projects, regardless of what programming
languages and tools you’re using.
</p>
</li>
<li>
[% PROCESS svg path="site-styles/assets/gfx-landing-reliable.svg" %]
<h2>Reliable</h2>
<p>
Nix ensures that installing or upgrading one package <strong>cannot
break other packages</strong>. It allows you to <strong>roll back to
previous versions</strong>, and ensures that no package is in an
inconsistent state during an upgrade.
</p>
</li>
</ul>
</div>
</section>
<section class="packages-searchbox">
<div id="packages-search">
<h1>Choose from Thousands of Packages</h1>
<p>
The Nix Packages collection
<strong>(<a href="https://github.com/NixOS/nixpkgs">Nixpkgs</a>)</strong>
is a set of
<strong class="-highlighted">over 80 000 packages</strong> for the Nix package manager.
</p>
<form method="get" action="https://search.nixos.org/packages">
<div>
<div class="form-input">
<input placeholder="Search for a package" type="text" name="query" />
</div>
</div>
<div>
<button type="submit">Search</button>
</div>
</form>
</div>
</section>
<section id="examples" class="home-examples">
<div>
<h1>Examples</h1>
<ul class="examples-list -spotlight">
[% WRAPPER exampleBlock demo="example_1" title="Try new tools without fear" %]
[% END %]
[% WRAPPER exampleBlock demo="example_2" title="Multiple languages, one tool" %]
[% END %]
[% WRAPPER exampleBlock demo="example_3" title="Declarative development environments" %]
[% END %]
</ul>
[% PROCESS demoPane demo="example_1" %]
[% PROCESS demoPane demo="example_2" %]
[% PROCESS demoPane demo="example_3" %]
<ul class="examples-list -spotlight">
[% WRAPPER exampleBlock demo="example_4" title="Minimal docker images" %]
[% END %]
[% WRAPPER exampleBlock demo="example_5" title="Declarative cloud images" %]
[% END %]
[% WRAPPER exampleBlock demo="example_6" title="Test your configurations" %]
[% END %]
</ul>
</div>
</section>
[% PROCESS demoPane demo="example_4" %]
[% PROCESS demoPane demo="example_5" %]
[% PROCESS demoPane demo="example_6" %]
[% END %]