Skip to content

root-password

Automatically generates and configures a password for the root user.

Categories

Uncategorized

After the system was installed/deployed the following command can be used to display the root-password:

clan secrets get {machine_name}-password

See also: Facts / Secrets

Usage via Inventory

This module cannot be used via the inventory interface.

Usage via Nix

This module can be also imported directly in your nixos configuration. Although it is recommended to use the inventory interface if available.

Some modules are considered 'low-level' or 'expert modules' and are not available via the inventory interface.

{config, lib, inputs, ...}: {
    imports = [ inputs.clan-core.clanModules.root-password ];
    # ...
}

** This module doesnt require any options to be set.**