User accounts of this configuration.
Attribute set of the following options:
description(string): Full description of the username, e.g. the full name. Default: empty. Also used forgit.nameif that is unsetadmin(boolean): Grant this user administrative rights (sudo, NetworkManager). Default: falsesshKeys(list of string): SSH public keys that may log in as this user. Default: emptyhome(path): Path to this user’s home directory. Default:/home/${username}git: Submodulename(null or string): Full name of this user for Git commits. When null, topleveldescriptionis used as a fallback.email(null or string): Email address of this user for Git commits. When null, commits can’t be created.key(null or string): GPG key ID to sign commits with. When null, commits signing is disabled.
# flake.nix
{
# inputs = { ... };
outputs = { aquaris, self, ... }: aquaris self {
users.alice = {
description = "Alice Exampleuser";
sshKeys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAe61mAVmVqVWc+ZGoJnWDhMMpVXGwVFxeYH+QI0XSoo"
];
git = {
email = "alice@example.org";
key = "C743EE077172986F860FC0FE2F6FE1420970404C";
};
};
};
}# machine/example/default.nix
{ aquaris, ... }: {
aquaris.users = aquaris.lib.merge [
{ inherit (aquaris.cfg.users) alice; }
{ alice.admin = true; }
];
}