mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-22 23:35:51 -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:
|
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 '/home/cole/code/nixos-flake-example#nixosConfigufations`
|
||||||
* `nix build 'github.com:colemickens/nixos-flake-example#something` (loads from `flake.nix` in the root of that repo checkout)
|
|
||||||
|
(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,
|
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
|
## overview
|
||||||
|
|
||||||
Note that these produce the same output:
|
Note that these produce the same output:
|
||||||
|
|
Loading…
Add table
Reference in a new issue