-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfbb049
commit 5ca8786
Showing
3 changed files
with
103 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
disko.devices = { | ||
disk = { | ||
one = { | ||
type = "disk"; | ||
device = "/dev/disk/by-id/wwn-0x5000c500b794a007"; | ||
content = { | ||
type = "gpt"; | ||
partitions = { | ||
ESP = { | ||
size = "512M"; | ||
type = "EF00"; | ||
content = { | ||
type = "filesystem"; | ||
format = "vfat"; | ||
mountpoint = "/boot"; | ||
}; | ||
}; | ||
zfs = { | ||
size = "100%"; | ||
content = { | ||
type = "zfs"; | ||
pool = "tank0"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
two = { | ||
type = "disk"; | ||
device = "/dev/disk/by-id/wwn-0x5000c500bca7d633"; | ||
content = { | ||
type = "gpt"; | ||
partitions = { | ||
# Support multiple disks to boot from | ||
ESP = { | ||
size = "512M"; | ||
type = "EF00"; | ||
content = { | ||
type = "filesystem"; | ||
format = "vfat"; | ||
mountpoint = "/boot2"; | ||
}; | ||
}; | ||
zfs = { | ||
size = "100%"; | ||
content = { | ||
type = "zfs"; | ||
pool = "tank0"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
zpool = { | ||
tank0 = { | ||
type = "zpool"; | ||
mode = "mirror"; | ||
# Workaround: cannot import 'tank0': I/O error in disko tests | ||
options.cachefile = "none"; | ||
rootFsOptions = { | ||
compression = "zstd"; | ||
"com.sun:auto-snapshot" = "true"; | ||
acltype = "posixacl"; | ||
xattr = "sa"; | ||
canmount = "off"; | ||
mountpoint = "none"; | ||
}; | ||
options = { | ||
ashift = "12"; | ||
autotrim = "on"; | ||
}; | ||
|
||
datasets = { | ||
"root" = { | ||
type = "zfs_fs"; | ||
mountpoint = "/"; | ||
options.mountpoint = "legacy"; | ||
}; | ||
"home" = { | ||
type = "zfs_fs"; | ||
mountpoint = "/home"; | ||
options.mountpoint = "legacy"; | ||
}; | ||
"nix" = { | ||
type = "zfs_fs"; | ||
mountpoint = "/nix"; | ||
options.mountpoint = "legacy"; | ||
}; | ||
"persist" = { | ||
type = "zfs_fs"; | ||
mountpoint = "/persist"; | ||
options.mountpoint = "legacy"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters