1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-22 18:58:21 +03:00

Merge pull request #432 from Gigahawk/docs_fix

docs: update start/from-nixos
This commit is contained in:
Parthiv Seetharaman 2022-02-28 14:26:01 -08:00 committed by GitHub
commit 2399abe440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```