mirror of
https://github.com/lxstinthesky/matrix.git
synced 2025-11-02 08:52:45 +00:00
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
# other examples, see https://github.com/nix-community/disko/blob/master/example/
|
|
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = "/dev/sda";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "500M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
luks = {
|
|
size = "100%";
|
|
content = {
|
|
type = "luks";
|
|
name = "crypted";
|
|
settings.allowDiscards = true; # Enable SSD TRIM support
|
|
passwordFile = "/tmp/secret.key"; # install time key file location
|
|
# additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |