Skip to content

single-disk

Configures partitioning of the main disk

Primary Disk Layout

A module for the "disk-layout" category MUST be choosen.

There is exactly one slot for this type of module in the UI, if you don't fill the slot, your machine cannot boot

This module is a good choice for most machines. In the future clan will offer a broader choice of disk-layouts

The UI will ask for the options of this module:

device: "/dev/null"

Usage example

inventory.json

"services": {
    "single-disk": {
        "default": {
            "meta": {
                "name": "single-disk"
            },
            "roles": {
                "default": {
                    "machines": ["jon"]
                }
            },
            "machines": {
                "jon": {
                    "config": {
                        "device": "/dev/null"
                    }
                }
            }
        }
    }
}

Inventory usage

Predefined roles:

  • default

Usage:

buildClan {
  inventory.services = {
    single-disk.instance_1 = {
        roles.default.machines = [ "sara_machine" ];
        # ...
    };
  };
}

Usage

To use this module, import it like this:

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

Module Options

clan.single-disk.device

The primary disk device to install the system on

Type: string

single-disk