mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 01:53:15 -06:00
cleanups
This commit is contained in:
parent
7f5a847ae4
commit
72f39dbc31
1 changed files with 10 additions and 7 deletions
17
README.md
17
README.md
|
@ -10,18 +10,21 @@ Nix is in flakes mode when:
|
|||
1. `nixos-rebuild <cmd> --flake '.#'` is used
|
||||
2. `nix build '.#something'` the hash-tag syntax is used
|
||||
|
||||
**This automatically loads from a `flake.nix` in the specified dir.**
|
||||
**This automatically loads from a `flake.nix` in the specified dir. See these examples:**
|
||||
|
||||
If the flake.nix were located elsewhere you could do this too:
|
||||
These three examples, for me, are all the same source, but accessed in different ways:
|
||||
|
||||
* `nix build '/home/cole/code/nixos-flake-example#nixosConfigufations`
|
||||
* `nix build '.#nixosConfigurations.mysystem'`
|
||||
|
||||
(loads from `/home/cole/code/nixos-flake-example'`)
|
||||
* `nix build 'github.com:colemickens/nixos-flake-example#something'`
|
||||
(loads `flake.nix` from `.` (current dir))
|
||||
|
||||
(loads from `flake.nix` in the root of that repo checkout)
|
||||
* `nix build '/home/cole/code/nixos-flake-example#nixosConfigurations.mysystem'`
|
||||
|
||||
Those are just examples of syntax. Again,
|
||||
(loads `flake.nix` from `/home/cole/code/nixos-flake-example`)
|
||||
|
||||
* `nix build 'github.com:colemickens/nixos-flake-example#nixosConfigurations.mysystem'`
|
||||
|
||||
(nix will clone my github repo, then load `flake.nix` from `flake.nix` in the root of that repo checkout)
|
||||
|
||||
|
||||
## more tips
|
||||
|
|
Loading…
Reference in a new issue