summaryrefslogtreecommitdiff
path: root/0 inbox/Nix Flakes.md
diff options
context:
space:
mode:
authorJasper Ras <jras@hostnet.nl>2024-11-23 17:34:50 +0100
committerJasper Ras <jras@hostnet.nl>2024-11-23 17:34:50 +0100
commit80153a133d0888b7c0a7b72a9f80ccc6f005c555 (patch)
tree261af65acfe995e7254152136af119af489c7354 /0 inbox/Nix Flakes.md
parentdbe655fca3cf4fc5bc882015006f006764eace52 (diff)
sorted out inbox
Diffstat (limited to '0 inbox/Nix Flakes.md')
-rw-r--r--0 inbox/Nix Flakes.md21
1 files changed, 0 insertions, 21 deletions
diff --git a/0 inbox/Nix Flakes.md b/0 inbox/Nix Flakes.md
deleted file mode 100644
index cb7f69b..0000000
--- a/0 inbox/Nix Flakes.md
+++ /dev/null
@@ -1,21 +0,0 @@
-#nix
-
-Nix flakes are source trees containing a file `flake.nix` at their root. The file `flake.nix` provides a standardized way to provide [[Zettelkast/Index/Nix]] artifacts. It's like a package manager for [[Zettelkast/Index/Nix]]. A flake can be dependent on other Flakes and it's possible to pin dependencies to exact revisions by using a `flake.lock` file.
-
-Nix flake evaluation is hermetic, meaning that it produces the same result wherever it's built.k
-
-The feature can be enabled in `~/.config/nix/nix.conf`:
-
-```
-experimental-features = nix-command flakes
-```
-
-To initialize in a repo: `nix flake init`.
-
-In flakes dependencies have to be specified explicitly and MUST be locked to specific versions therefore it's no longer allowed to use the nixpkgs found in `NIX_PATH` by referencing it like `<nixpkgs>`.
-
-Output of a Flake is an arbitrary [[Zettelkast/Index/Nix]] value such as a package, [[NixOS]] module or library function.
-Commands `nix build` and `nix shell` will build the output `packages.<system>.default` unless we specify another output, for example: `nix shell .#checks.aarch64-linux.build`.
-
----
-[Flakes Wiki](https://nixos.wiki/wiki/Flakes) \ No newline at end of file