pay attention to:
note
- nix flake show = useful to see flake inputs
- flake inputs = other flakes from the outside
- flake outputs = function of our flake
- fn (fn_inputs ) = fn_outputs
- flake inputs <=dump= fn_inputs
- default in fn_outputs : when use flake without
#, this default will run
- good practice to define var in flake output (let … in …)
- another good standard
outputs = inputs@{nixpkgs, ...}:
- evolved from
outputs = inputs:
- still need to input.
something
output = {nixpkgs, self}:
- we can set flake A (e.g. home-manager) to follow flake B (e.g. nixpkgs)
- flake and nixosConfiguration
- modules
- specialArgs
- passing extra arguments to modules
- general usecase :
inherit inputs
- means inputs = inputs
- so we can specify inputs in every modules
created on: Thu May 14 2026