From 7f5a847ae4c2aa7161d621afdaca78acfab0a91d Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Sat, 24 Oct 2020 21:35:21 -0700 Subject: [PATCH] another tip --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2fe1531..7ca4dc6 100644 --- a/README.md +++ b/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: