added disko.nix
This commit is contained in:
parent
c0a2d64187
commit
fefbd61378
25
disco.nix
Normal file
25
disco.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ disks ? [ "/dev/nvme0n1" ], ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
disk = {
|
||||||
|
device = builtins.elemAt disks 0;
|
||||||
|
type = "disk";
|
||||||
|
content = {
|
||||||
|
type = "gpt";
|
||||||
|
partitions = [
|
||||||
|
{ name = "ESP"; type = "EF00"; size = "512M"; content.type = "filesystem";
|
||||||
|
content.format = "fat32"; mountpoint = "/boot"; }
|
||||||
|
{ name = "rpool"; type = "BE00"; size = "60G";
|
||||||
|
content.type = "zfs"; content.pool = "rpool"; }
|
||||||
|
{ name = "tank"; type = "BE00";
|
||||||
|
content.type = "zfs"; content.pool = "tank"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
zpool = {
|
||||||
|
rpool = { datasets = { root = { mountpoint = "/"; }; }; };
|
||||||
|
tank = { datasets = { media = { mountpoint = "/tank"; }; }; };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user