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 = {
@ -46,24 +46,12 @@
# Declare zfs pools for this system.
zpool = let
options = {
ashift = "12";
autotrim = "on";
listsnapshots = "on";
};
rootFsOptions = {
acltype = "posix";
atime = "off";
compression = "zstd";
dnodesize = "auto";
mountpoint = "none";
normalization = "formD";
xattr = "sa";
};
inherit (config.constants) zfsPoolOptions zfsRootFsOptions;
in {
zactive = {
type = "zpool";
inherit options rootFsOptions;
options = zfsPoolOptions;
rootFsOptions = zfsRootFsOptions;
datasets = {
# Encrypt main dataset
main = {
@ -98,7 +86,8 @@
zarchive = {
type = "zpool";
inherit options rootFsOptions;
options = zfsPoolOptions;
rootFsOptions = zfsRootFsOptions;
datasets = {
snapshot.type = "zfs_fs";
# Reserve space for performance