mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 06:03:15 -06:00
another tip
This commit is contained in:
parent
08748a4850
commit
7f5a847ae4
1 changed files with 11 additions and 2 deletions
13
README.md
13
README.md
|
@ -14,12 +14,21 @@ Nix is in flakes mode when:
|
|||
|
||||
If the flake.nix were located elsewhere you could do this too:
|
||||
|
||||
* `nix build '/home/cole/code/nixos-flake-example#something` (loads from `/home/cole/code/nixos-flake-example`)
|
||||
* `nix build 'github.com:colemickens/nixos-flake-example#something` (loads from `flake.nix` in the root of that repo checkout)
|
||||
* `nix build '/home/cole/code/nixos-flake-example#nixosConfigufations`
|
||||
|
||||
(loads from `/home/cole/code/nixos-flake-example'`)
|
||||
* `nix build 'github.com:colemickens/nixos-flake-example#something'`
|
||||
|
||||
(loads from `flake.nix` in the root of that repo checkout)
|
||||
|
||||
Those are just examples of syntax. Again,
|
||||
|
||||
|
||||
## more tips
|
||||
|
||||
1. `nixos-rebuild build --flake '.#'` will automatically try to find and build the attribute: `.#nixosConfigurations.your_hostname` (assuming your machines hostname is `your_hostname`)
|
||||
|
||||
|
||||
## overview
|
||||
|
||||
Note that these produce the same output:
|
||||
|
|
Loading…
Reference in a new issue