Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add builtins.fetchGit to README.org #54

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ enable ThinkPad X220 profile, your ~imports~ in ~/etc/nixos/configuration.nix~
should look like:

: imports = [ <nixos-hardware/lenovo/thinkpad/x220> ./hardware-configuration.nix ];

Starting with nix 2.0 it is also possible to use `builtins.fetchGit` to fetch this repository:

: imports = [
: (builtins.fetchGit {
: url = "https://github.com/NixOS/nixos-hardware";
: # revision here is optional, if not given, nix will fetch updates automatically
: rev = "a5fa2cc1ae6a1002962cf71fc23fbd533db412be";
: } + "/lenovo/thinkpad/x250")
: ./hardware-configuration.nix
: ];

** Profiles

Expand Down