Skip to content

disk-id 🔹

Generates a uuid for use in disk device naming

Will be deprecated

The disk-id module might eventually be migrated to 'clanServices'*

See: clanServices

Categories

System

Usage via Inventory

Roles

This module can be used via predefined roles

  • default

Every role has its own configuration options, which are each listed below.

For more information, see the inventory guide.

Example

For example the admin module adds the following options globally to all machines where it is used.

clan.admin.allowedkeys

clan-core.lib.clan {
    inventory.services = {
        admin.me = {
            roles.default.machines = [ "jon" ];
            config.allowedkeys = [ "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..." ];
        };
    };
};

Options of default role

The disk-id default doesnt offer / require any options to be set.

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.disk-id ];
    # ...
}

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