Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/487cd80b-c747-44b8-9479-d3f7f7cc3328 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
59 lines
1.5 KiB
Nix
59 lines
1.5 KiB
Nix
{ device ? "/dev/sda", dataDevice ? "", ... }:
|
|
|
|
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = builtins.toString device;
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
priority = 1;
|
|
name = "ESP";
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot/efi";
|
|
mountOptions = [ "umask=0077" "defaults" ];
|
|
};
|
|
};
|
|
root = {
|
|
name = "root";
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
extraArgs = [ "-L" "sovran_systemsos" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} // (if dataDevice != "" then {
|
|
data = {
|
|
type = "disk";
|
|
device = builtins.toString dataDevice;
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
primary = {
|
|
name = "primary";
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/run/media/Second_Drive";
|
|
extraArgs = [ "-L" "BTCEcoandBackup" ];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} else {});
|
|
};
|
|
} |