machines/sirius: use f2fs file system

This commit is contained in:
2026-02-12 17:46:04 +07:00
parent ac6aaefbd4
commit 009aae29db
2 changed files with 31 additions and 45 deletions

View File

@@ -17,4 +17,20 @@
system.stateVersion = "25.11"; system.stateVersion = "25.11";
services.journald.extraConfig = ''
Storage=volatile
RuntimeMaxUse=30M
RuntimeMaxFileSize=10M
'';
services.udisks2.enable = false;
nix.settings.log-lines = 25;
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 15d";
};
} }

View File

@@ -16,6 +16,7 @@ in
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
}; };
tmp.useTmpfs = true;
}; };
disko.devices = { disko.devices = {
@@ -33,20 +34,24 @@ in
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
mountpoint = "/boot"; mountpoint = "/boot";
mountOptions = [ "nofail" ]; mountOptions = [
"umask=0077"
"nofail"
];
}; };
}; };
system = { root = {
name = "root";
size = "100%"; size = "100%";
content = { content = {
type = "zfs"; type = "filesystem";
pool = "zroot"; format = "f2fs";
}; mountpoint = "/";
}; extraArgs = [
swap = { "-0"
size = "16G"; "extra_attr,inode_checksum,sb_checksum,compression"
content = { ];
type = "swap"; mountOptions = "compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime,nodiscard";
}; };
}; };
}; };
@@ -67,41 +72,6 @@ in
}) vdev }) vdev
)); ));
zpool = { 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";
};
};
};
};
zdata = { zdata = {
type = "zpool"; type = "zpool";
options.ashift = "12"; options.ashift = "12";