blob: 09b9b0909f77b6b858856039beb1e30ccc70c9c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
---
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/<branch name>";
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
};
```
Outputs:
[Flake check](https://github.com/NixOS/nix/blob/master/src/nix/flake-check.md)
|