Skip to content

Commit e0b818e

Browse files
committed
Version 0.6 → 0.7
1 parent 7955d03 commit e0b818e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

manuscript/ContinuousIntegrationDeployment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ This exercise will build upon the same example as the [previous chapter on Terra
5151
```bash
5252
$ mkdir todo-app
5353
$ cd todo-app
54-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6#terraform'
54+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7#terraform'
5555
```
5656

5757
… or you can skip straight to the final result (minus the secrets file) by running:
5858

5959
```bash
60-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6#continuous-deployment'
60+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7#continuous-deployment'
6161
```
6262

6363
garnix requires the use of Nix flakes in order to support [efficient evaluation caching](https://www.tweag.io/blog/2020-06-25-eval-cache/) and the good news is that we can already build our NixOS system without any changes to our flake, but it might not be obvious how at first glance.

manuscript/Flakes.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ The Nix command-line interface provides several commands that are flake-aware, a
507507
We'll be using the following flake as the running example for our commands:
508508

509509
```bash
510-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6?dir=templates/cowsay'
510+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7?dir=templates/cowsay'
511511
```
512512

513513
… which will have this structure:
@@ -670,7 +670,7 @@ $ nix build 'github:NixOS/nixpkgs/23.11#cowsay' # Exact same result
670670
In fact, we don't even need to create a local copy of the `cowsay` template flake. We could also have run the flake directly from the GitHub repository where it's hosted:
671671

672672
```bash
673-
$ nix build 'github:Gabriella439/nixos-in-production/0.6?dir=templates/cowsay'
673+
$ nix build 'github:Gabriella439/nixos-in-production/0.7?dir=templates/cowsay'
674674
```
675675

676676
This works because flakes support GitHub URIs, so all of the flake operations in this chapter work directly on the GitHub repository without having to clone or template the repository locally. However, for simplicity all of the following examples will still assume you templated the flake locally.
@@ -1007,7 +1007,7 @@ You can template a project using `nix flake init`, which we've already used a fe
10071007
… so earlier when we ran:
10081008

10091009
```bash
1010-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6?dir=templates/cowsay'
1010+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7?dir=templates/cowsay'
10111011
```
10121012

10131013
… that copied the directory pointed to by the `templates.default.path` flake output to our local directory.

manuscript/Setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ If you are using Linux (including NixOS or the Windows Subsystem for Linux) you
200200
Run the following command to generate your first project:
201201

202202
```bash
203-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6#setup'
203+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7#setup'
204204
```
205205

206206
… that will generate the following `flake.nix` file:

manuscript/Terraform.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ the list of [AWS service endpoints](https://docs.aws.amazon.com/general/latest/g
4848
Now run the following command to bootstrap our first Terraform project:
4949

5050
```bash
51-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6#terraform'
51+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7#terraform'
5252
```
5353

5454
… which will generate the following files:

manuscript/WebServer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Now that we can build and run a local NixOS virtual machine we can create our fi
77
We'll begin from the template project from "Setting up your development environment". You can either begin from the previous chapter by running the following command (if you haven't done so already):
88

99
```bash
10-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6#setup'
10+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7#setup'
1111
```
1212

1313
… or if you want to skip straight to the final result at the end of this chapter you can run:
1414

1515
```bash
16-
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.6#server'
16+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.7#server'
1717
```
1818

1919
Let's modify `module.nix` to specify a machine that serves a simple static "Hello, world!" page on `http://localhost`:

0 commit comments

Comments
 (0)