From 3cd3d019bd97457fc0bab93e71f6003de3070e39 Mon Sep 17 00:00:00 2001 From: kurogeek Date: Tue, 9 Dec 2025 14:40:01 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:machines/adhil/disko.nix --- machines/adhil/configuration.nix | 2 +- machines/adhil/disko.nix | 64 ++++++++------------------------ 2 files changed, 16 insertions(+), 50 deletions(-) diff --git a/machines/adhil/configuration.nix b/machines/adhil/configuration.nix index 092b7dc..b146e00 100644 --- a/machines/adhil/configuration.nix +++ b/machines/adhil/configuration.nix @@ -1,7 +1,7 @@ { ... }: { nixpkgs.hostPlatform = { - system = "x86_64-linux"; + system = "aarch64-linux"; }; system.stateVersion = "25.11"; clan.core.sops.defaultGroups = [ "admins" ]; diff --git a/machines/adhil/disko.nix b/machines/adhil/disko.nix index f95a252..ba3b650 100644 --- a/machines/adhil/disko.nix +++ b/machines/adhil/disko.nix @@ -23,65 +23,31 @@ in type = "gpt"; partitions = { ESP = { - size = "1G"; + end = "500M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; - mountOptions = [ "nofail" ]; + mountOptions = [ "umask=0077" ]; }; }; - system = { - size = "100%"; + root = { + name = "root"; + end = "-0"; content = { - type = "zfs"; - pool = "zroot"; + type = "filesystem"; + format = "f2fs"; + mountpoint = "/"; + extraArgs = [ + "-O" + "extra_attr,inode_checksum,sb_checksum,compression" + ]; + mountOptions = [ + "compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime,nodiscard" + ]; }; }; - swap = { - size = "4G"; - content = { - type = "swap"; - }; - }; - }; - }; - }; - }; - zpool = { - zroot = { - type = "zpool"; - rootFsOptions = { - mountpoint = "none"; - compression = "lz4"; - acltype = "posixacl"; - xattr = "sa"; - "com.sun:auto-snapshot" = "true"; - }; - options.ashift = "12"; - datasets = { - "root" = { - type = "zfs_fs"; - options.mountpoint = "none"; - }; - "root/nixos" = { - type = "zfs_fs"; - options.mountpoint = "/"; - mountpoint = "/"; - }; - "root/home" = { - type = "zfs_fs"; - options.mountpoint = "/home"; - mountpoint = "/home"; - }; - "root/tmp" = { - type = "zfs_fs"; - mountpoint = "/tmp"; - options = { - mountpoint = "/tmp"; - sync = "disabled"; - }; }; }; };