mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
docs/site: update description for systems
on declarative users and images
This commit is contained in:
parent
b97cc4415a
commit
6cbd1c972b
@ -22,7 +22,10 @@ The data is then used for certain functions in the flake definition file (i.e.,
|
|||||||
[source, toml]
|
[source, toml]
|
||||||
----
|
----
|
||||||
[plover]
|
[plover]
|
||||||
system = "x86_64-linux"
|
systems = [
|
||||||
|
"aarch64-linux",
|
||||||
|
"x86_64-linux",
|
||||||
|
]
|
||||||
format = "iso"
|
format = "iso"
|
||||||
hostname = "ploverrific"
|
hostname = "ploverrific"
|
||||||
domain = "foodogsquared.one"
|
domain = "foodogsquared.one"
|
||||||
@ -39,8 +42,9 @@ remote-build = true
|
|||||||
|
|
||||||
For a complete reference, here are the expected attributes.
|
For a complete reference, here are the expected attributes.
|
||||||
|
|
||||||
- `system` contains the platform of the host system.
|
- `systems` contains a list of platforms of the host system.
|
||||||
This is mainly used to indicate the platform used for the nixpkgs repository.
|
This is mainly used to indicate the platform used for the nixpkgs repository.
|
||||||
|
Take note if `systems` contains more than one platform, the NixOS configurations will be renamed as `$NAME-$SYSTEM` (e.g., `plover` to `plover-x86_64-linux`, `plover-aarch64-linux`).
|
||||||
|
|
||||||
- `format` is the image output format for the host.
|
- `format` is the image output format for the host.
|
||||||
It expects an accepted value from github:nix-community/nixos-generators[opts=repo] project.
|
It expects an accepted value from github:nix-community/nixos-generators[opts=repo] project.
|
||||||
|
@ -15,7 +15,7 @@ Here's an example user with complete schema.
|
|||||||
[source, toml]
|
[source, toml]
|
||||||
----
|
----
|
||||||
[foo-dogsquared]
|
[foo-dogsquared]
|
||||||
system = "x86_64-linux"
|
systems = [ "x86_64-linux" ]
|
||||||
home-manager-channel = "home-manager-23.05"
|
home-manager-channel = "home-manager-23.05"
|
||||||
home-directory = "/home/foo-dogsquared"
|
home-directory = "/home/foo-dogsquared"
|
||||||
username = "foodogsquared"
|
username = "foodogsquared"
|
||||||
@ -30,8 +30,9 @@ magic-rollback = true
|
|||||||
remote-build = true
|
remote-build = true
|
||||||
----
|
----
|
||||||
|
|
||||||
- `system` contains the platform of the home-manager user.
|
- `systems` contains a list of platforms of the home-manager user.
|
||||||
This is mainly used to indicate the platform used for the nixpkgs repository.
|
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`).
|
||||||
|
|
||||||
- `home-manager-channel` contains the home-manager channel to be used.
|
- `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.
|
The value should be one of the home-manager channel that is imported into this flake.
|
||||||
|
Loading…
Reference in New Issue
Block a user