Flakes: Difference between revisions
imported>Mic92 |
imported>Mic92 more inputs examples |
||
| Line 73: | Line 73: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
{ | { | ||
inputs.bar | # github example, also supported gitlab: | ||
input.nixpkgs.url = "github:Mic92/nixpkgs/master"; | |||
# git urls | |||
inputs.git-example.url = "git+https://git.somehost.tld/user/path"; | |||
# local directories (needs to be a repository?) | |||
inputs.directory-example.url = "/path/to/repo"; | |||
# Use this for non-flakes | |||
inputs.bar.url = "github:foo/bar/branch"; | |||
inputs.bar.flake = false; | |||
# Overwrite inputs in a flake | |||
# This is useful to use the same nixpkgs version in both flakes | |||
inputs.sops-nix.url = "github:Mic92/sops-nix"; | |||
inputs.sops-nix.inputs.nixpkgs.follows = "nixpkgs"; | |||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||