Please enable JavaScript.
Coggle requires JavaScript to display documents.
Nix Flakes, Docs - Coggle Diagram
Nix Flakes
flake.lock
JSON file with
dependencies versions
nix
flake
init
Bootstrap a
new
flake.nix
May use
outputs.templates
from other
flake.nix
subcommand
lock
Commands to
manage
flake.lock
subcommand
show
List know
outputs
of this flake
subcommand
update
Update
flakes.lock
subcommand
check
Run checks of
outputs.checks
subcommand
subcommands
build
build packges of
outputs.packages
subcommand
run
run packages of
outputs.apps
subcommand
develop
enter/build envrionment
outputs.devShells
subcommand
nix package
manager cli
flake.nix
description
This flake
description
string
inputs
< input name >
url
Resource URL
string
flake
boolean
Load it as Flake
Default: true
Set as false to use
non nix resources
keys/values
Any name
keys/values
Dependencies
definition
outputs
function
{ input names }
Keys/Values with
results of inputs outputs
Argument keys/values
< output keys >
Return keys/values
Can have any key/value
but some are well know
apps
< system >
< name >
type
string
"app", only supported
type for now
program
path
Program executable path
keys/values
keys/values
keys/values
checks
< system >
< name >
keys/pkgs
< pkg >
Checked package
keys/values
keys/values
devShells
< system >
< name >
keys/pkgs
< pkg >
Environment package
keys/values
keys/values
templates
< name >
path
path
Template path
description
string
Template Description
keys/values
keys/values
packages
< system >
One of:
x86_64-linux
aarch64-linux
x86_64-darwin
aarch64-darwin
etc...
< name >
< pkg >
Package
Any Name
keys/pkgs
keys/values
keys/values
legacyPackages
< system >
< name >
< pkg >
Pkgs without flakes
keys/pkgs
keys/values
keys/values
overlays
< name>
< overlay >
NixPkgs Overlay function
keys/functions
keys/values
lib
Collection of utilities functions
keys/values
nixosConfigurations
< hostname >
< NixOS >
Result of
lib.nixosSystem
keys/nixos
keys/values
nixosModules
< name >
< nix module >
Nix Module Pattern
Configs
keys/nix modules
keys/values
Nix File
keys/values
Docs
Posts
Platonics: Nix Flake Architecture in Practice
Drake Rossman How to Convert Default NixOS to NixOS with Flakes
nix.dev flakes
Zero To Nix: Flakes
Julia Evans: Some notes on nix flakes
Xe: Flakes
Ian Henry: My first brush with flakes
Hoverbear: A Flake for your Crate
Ayats: Channels to flakes
Figsoda: Developing Nix Libraries with Subflakes
Videos
Will T: Intro to Flakes
The Nix Hour #30: flakes motivation
Jake Hamilton: NixOS Flake Tour
Matthew Croughan - Use flake.nix
Li Yang: Nix Flakes
RubberDuck: Nix Flakes are your friend
Ian: Beginners Guide to Nix EP1: Flakes
Books
NixOS & Flakes Book
Wombat’s Book of Nix
Nix from First Principles: Flake Edition
Nix Wiki
Manual
Flakes Search