This commit is contained in:
Sicheng Pan 2026-02-16 22:00:15 -08:00
parent c47db92a88
commit e7c56b4d22
Signed by: macronova
GPG key ID: CE969670FB4B4A56
27 changed files with 107 additions and 202 deletions

View file

@ -1,4 +1,4 @@
{...}: {
{config, ...}: {
disko.devices = {
# Partition the physical disk
disk.storage = {
@ -29,20 +29,8 @@
# Construct the primary zfs pool for this system.
zpool.zroot = {
type = "zpool";
options = {
ashift = "12";
autotrim = "on";
listsnapshots = "on";
};
rootFsOptions = {
acltype = "posix";
atime = "off";
compression = "zstd";
dnodesize = "auto";
mountpoint = "none";
normalization = "formD";
xattr = "sa";
};
options = config.constants.zfsPoolOptions;
rootFsOptions = config.constants.zfsRootFsOptions;
datasets = {
# Encrypt main dataset
main = {