--- tags: - nix --- Root directory contains flake.nix: Specifies inputs (other flakes) and outputs ([[Nix derivations]]). Allows pinning versions of inputs (dependencies) making it easier to write reproducable expressions. Avoid multiple nixpkgs by including a follows on the input: ``` inputs = { nixpkgs.url = "github:NixOS/nixpkgs/"; hyprland = { url = "github:hyprwm/Hyprland"; inputs.nixpkgs.follows = "nixpkgs"; }; }; ``` Outputs: [Flake check](https://github.com/NixOS/nix/blob/master/src/nix/flake-check.md)