Fix disko config eval

This commit is contained in:
Sandro - 2023-03-15 21:31:33 +01:00
parent b017aa2dad
commit b7404f1874
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 4 additions and 5 deletions

View File

@ -1,9 +1,9 @@
{ name ? "chaos", disk ? "sda1", ... }:
{ lib, name ? "chaos", disk ? "/dev/sda1", ... }:
{
disk = {
${disk} = {
device = "/dev/${disk}";
device = disk;
type = "disk";
content = {
type = "table";
@ -29,7 +29,6 @@
part-type = "primary";
content = {
type = "luks";
# mountpoint = "/";
name = "crypt-${name}";
content = {
type = "lvm_pv";
@ -42,7 +41,7 @@
};
};
lvm_vg.pool = {
lvm_vg."lvm-${name}" = {
type = "lvm_vg";
lvs = {
zfs = {
@ -60,7 +59,7 @@
};
};
zpool."${name}-${disk}" = {
zpool."${name}-${lib.replaceStrings ["/dev/"] [""] disk}" = {
type = "zpool";
rootFsOptions = {
acltype = "posixacl";