mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 16:10:03 +01:00
add nixos tests for disko.config, extend/fix existing tests
This commit is contained in:
parent
a215a19759
commit
9f7f23abdb
22 changed files with 448 additions and 110 deletions
|
|
@ -1,15 +1,30 @@
|
|||
{
|
||||
{ disks ? [ "/dev/vdb" "/dev/vdc" ] }: {
|
||||
disk = {
|
||||
vdb = {
|
||||
type = "disk";
|
||||
device = "/dev/vdb";
|
||||
device = builtins.elemAt disks 0;
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
type = "partition";
|
||||
start = "0%";
|
||||
name = "ESP";
|
||||
start = "1MiB";
|
||||
end = "100MiB";
|
||||
bootable = true;
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "vfat";
|
||||
mountpoint = "/boot";
|
||||
options = [
|
||||
"defaults"
|
||||
];
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "partition";
|
||||
start = "100MiB";
|
||||
end = "100%";
|
||||
name = "primary";
|
||||
bootable = true;
|
||||
|
|
@ -24,7 +39,7 @@
|
|||
};
|
||||
vdc = {
|
||||
type = "disk";
|
||||
device = "/dev/vdc";
|
||||
device = builtins.elemAt disks 1;
|
||||
content = {
|
||||
type = "zfs";
|
||||
pool = "zroot";
|
||||
|
|
@ -34,10 +49,16 @@
|
|||
zpool = {
|
||||
zroot = {
|
||||
type = "zpool";
|
||||
rootFsOptions.mountpoint = "none";
|
||||
datasets = {
|
||||
zfs_fs = {
|
||||
"root" = {
|
||||
zfs_type = "filesystem";
|
||||
options.mountpoint = "none";
|
||||
};
|
||||
"root/zfs_fs" = {
|
||||
zfs_type = "filesystem";
|
||||
mountpoint = "/zfs_fs";
|
||||
options.mountpoint = "/zfs_fs";
|
||||
options."com.sun:auto-snapshot" = "true";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue