Delete page "User-Management"
@@ -1,37 +0,0 @@
|
|||||||
# User Management
|
|
||||||
|
|
||||||
Users are defined in `users.nix` and enabled per-host in `inventory.nix`.
|
|
||||||
|
|
||||||
Only `root` and the default lab account are enabled everywhere by default.
|
|
||||||
|
|
||||||
## Defining Users
|
|
||||||
|
|
||||||
```nix
|
|
||||||
athenix.users.myuser = {
|
|
||||||
description = "Full Name";
|
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
|
||||||
shell = pkgs.zsh;
|
|
||||||
hashedPassword = "$6$...";
|
|
||||||
opensshKeys = [ "ssh-ed25519 AAAA..." ];
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
## Enabling Users on Hosts
|
|
||||||
|
|
||||||
```nix
|
|
||||||
athenix.users.myuser.enable = true;
|
|
||||||
```
|
|
||||||
|
|
||||||
Or using the convenience option:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
athenix.forUser = "myuser";
|
|
||||||
```
|
|
||||||
|
|
||||||
## External User Modules
|
|
||||||
|
|
||||||
Users may reference external repositories that contain both user options
|
|
||||||
and home-manager configuration.
|
|
||||||
|
|
||||||
External user modules are evaluated in both NixOS and home-manager
|
|
||||||
contexts.
|
|
||||||
Reference in New Issue
Block a user