From 4203bfd0d92e3fec0ff7eb3fb450673d030d972e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amy=20de=20Buitl=C3=A9ir?= Date: Thu, 4 Sep 2025 17:21:20 +0100 Subject: [PATCH] temp --- index.html | 86 +++++++++++++++++++++++------------------------------- 1 file changed, 36 insertions(+), 50 deletions(-) diff --git a/index.html b/index.html index e859454..73943e9 100644 --- a/index.html +++ b/index.html @@ -100,6 +100,7 @@ pre.pygments .tok-il { color: #666666 } /* Literal.Number.Integer.Long */
Table of Contents
+

Acknowledgments

+
+
+

I would like to thank the patient people on the +NixOS Discourse Forum +who answered my many questions, +especially cdepillabout and FedericoSchonborn.

+
+
+
+

1. Introduction

@@ -4305,45 +4317,7 @@ hello-flake
flake.nix
-
 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
{
-  inputs = {
-    nixpkgs.url = "github:NixOS/nixpkgs";
-    flake-utils.url = "github:numtide/flake-utils";
-  };
-
-  outputs = { self, nixpkgs, flake-utils }:
-    flake-utils.lib.eachDefaultSystem (system:
-      let
-        pkgs = import nixpkgs { inherit system; };
-      in
-      {
-        devShells = rec {
-          default = pkgs.mkShell {
-            packages = [ pkgs.cowsay ];
-          };
-        };
-      }
-    );
-}
+
1
cat: flake.nix: No such file or directory
 
@@ -4353,22 +4327,34 @@ hello-flake
$ cowsay "Moo!"
-bash: line 17: cowsay: command not found
+bash: line 32: cowsay: command not found
 $ nix develop
-$ cowsay "Moo!"
- ______
-< Moo! >
- ------
-        \   ^__^
-         \  (oo)\_______
-            (__)\       )\/\
-                ||----w |
-                ||     ||
+path '/home/amy/codeberg/nix-book/source/recipes/devshell/tempwork' does not contain a 'flake.nix', searching up +error: path '/home/amy/codeberg/nix-book' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)

10.4.2. A flake

+
+
flake.nix
+
+
1
cat: flake.nix: No such file or directory
+
+
+
+
+

Here’s a demonstration using the shell.

+
+
+
+
$ cowsay "Moo!"
+bash: line 62: cowsay: command not found
+$ nix develop
+path '/home/amy/codeberg/nix-book/source/recipes/devshell/tempwork' does not contain a 'flake.nix', searching up
+error: path '/home/amy/codeberg/nix-book' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)
+
+

FINISH

@@ -4956,7 +4942,7 @@ mkShell {