nixos-config/users/README.adoc

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-12-21 06:29:27 +00:00
= User-specific configuration
2021-11-27 08:04:01 +00:00
:toc:
This is where user-specific configurations comes in.
2022-07-09 06:04:17 +00:00
Similar to modules, the top-level of this directory contains users for various modules (e.g., home-manager, NixOS).
2021-12-21 06:29:27 +00:00
Take note of the following structure:
2021-12-21 06:29:27 +00:00
[source, tree]
----
2021-12-21 06:29:27 +00:00
users/
├── home-manager/
│ ├── foo-dogsquared/
│ ├── harepoint/
│   └── polski/
├── nixos/
│ ├── foo-dogsquared/
│ ├── harepoint/
│   └── vmguest/
└── README.adoc
----
2021-12-21 06:29:27 +00:00
It doesn't require to have users to be present for all types.
There are conventions for setting in each user type.
2021-12-21 06:29:27 +00:00
* For NixOS user configuration, it is expect to only have one user with their respective user-specific configuration.
This includes user-specific packages, home-manager-specific configuration (even importing them from `./home-manager` users), and so forth.
If you want to set users from the host, see link:../hosts/README.adoc[Host-specific configurations] for more details.
2021-12-21 06:29:27 +00:00
* home-manager users are just home-manager configurations (i.e., `$XDG_CONFIG_HOME/nix/home.nix`).
That's pretty much it.