mirror of
https://github.com/nix-community/disko.git
synced 2026-01-12 09:18:33 +01:00
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib, ... }:
|
|
{
|
|
options.flake.diskoConfigurations = lib.mkOption {
|
|
type = lib.types.lazyAttrsOf lib.types.raw;
|
|
default = { };
|
|
description = "Instantiated Disko configurations. Used by `disko` and `disko-install`.";
|
|
example = {
|
|
my-pc = {
|
|
disko.devices = {
|
|
disk = {
|
|
my-disk = {
|
|
device = "/dev/sda";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
type = "EF00";
|
|
size = "500M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|