some fixes maybe

This commit is contained in:
twoneis 2024-05-06 22:20:24 +02:00
parent 57be8c1316
commit 94af0087bf

View file

@ -1,7 +1,7 @@
{ {
disko.devices = { disko.devices = {
disk = { disk = {
ssd1 = { ssd0 = {
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
content = { content = {
@ -34,7 +34,7 @@
}; };
}; };
}; };
hdd1 = { hdd0 = {
type = "disk"; type = "disk";
device = "/dev/sda"; device = "/dev/sda";
content = { content = {
@ -60,12 +60,13 @@
canmount = "off"; canmount = "off";
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
}; };
mountpoint = "/";
postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank"; postCreateHook = "zfs list -t snapshot -H -o name | grep -E '^zroot@blank$' || zfs snapshot zroot@blank";
datasets = { datasets = {
root = { home = {
type = "zfs_fs"; type = "zfs_fs";
mountpoint = "/"; mountpoint = "/home";
}; };
nix = { nix = {
type = "zfs_fs"; type = "zfs_fs";