From 7e394658a0ed9f9ecd1b398bbbd9e861f5aaa8bb Mon Sep 17 00:00:00 2001 From: Jasper Chan Date: Fri, 25 Feb 2022 02:37:33 -0800 Subject: [PATCH] docs: update start/from-nixos --- doc/start/from-nixos.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/doc/start/from-nixos.md b/doc/start/from-nixos.md index 3e8c84d..c10da04 100644 --- a/doc/start/from-nixos.md +++ b/doc/start/from-nixos.md @@ -7,15 +7,21 @@ basic NixOS configuration for your system using: bud up ``` -This will make a new file `hosts/up-$(hostname).nix`, which you can edit to +This will make a new folder `hosts/$(hostname)`, which you can edit to your liking. You must then add a host to `nixos.hosts` in flake.nix: ```nix { - nixos.hosts = { - modules = hosts/NixOS.nix; + # ... + nixos = { + hosts = { + /* set host specific properties here */ + NixOS = { }; + $(hostname) = { }; + }; }; + # ... } ``` @@ -36,9 +42,9 @@ Now might be a good time to read the docs on [suites](../concepts/suites.md) and > them directly into a host module of your own making, and commit that instead. # Installation -Once you're ready to deploy `hosts/my-host.nix`: +Once you're ready to deploy `hosts/$(hostname)`: ```sh -bud my-host switch +bud rebuild $(hostname) switch ```