Skip to content

Commit 9b0a121

Browse files
committed
Pin templates to specific versions
Related to #14 This is so that if people read older drafts of the book the examples continue to work and match the text for those drafts
1 parent 0f4a367 commit 9b0a121

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

manuscript/Setup.md

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

201201
```bash
202-
$ nix flake init --template 'github:Gabriella439/nixos-in-production#setup'
202+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.4#setup'
203203
```
204204

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

manuscript/Terraform.md

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

4949
```bash
50-
$ nix flake init --template 'github:Gabriella439/nixos-in-production#terraform'
50+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.4#terraform'
5151
```
5252

5353
… 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#setup'
10+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.4#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#server'
16+
$ nix flake init --template 'github:Gabriella439/nixos-in-production/0.4#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)