docs/site: update "Declarative user management" settings schema

This commit is contained in:
Gabriel Arazas 2023-08-02 23:00:09 +08:00
parent 6d58d6a14e
commit 95d48f2ad6
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -16,6 +16,7 @@ Here's an example user with complete schema.
----
[foo-dogsquared]
systems = [ "x86_64-linux" ]
nixpkgs-channel = "nixos-stable"
home-manager-channel = "home-manager-23.05"
home-directory = "/home/foo-dogsquared"
username = "foodogsquared"
@ -34,6 +35,9 @@ remote-build = true
This is mainly used to indicate the platform used for the nixpkgs repository.
Take note if there's more than one platforms specified the home environment attribute name will change from `$HOSTNAME` to `$HOSTNAME-$SYSTEM` (e.g., `foo-dogsquared` to `foo-dogsquared-x86_64-linux`).
- `nixpkgs-channel` indicates the branch of the nixpkgs to be used.
By default, this uses the `nixpkgs` which follows the `nixos-unstable` branch.
- `home-manager-channel` contains the home-manager channel to be used.
The value should be one of the home-manager channel that is imported into this flake.
By default, it sets the home-manager channel at `home-manager` which is pointed at the unstable channel.