remove:zfs

This commit is contained in:
dichgrem
2025-08-25 10:25:06 +08:00
parent 3688589fe7
commit 42e561df6c
4 changed files with 0 additions and 58 deletions

View File

@@ -13,7 +13,6 @@
Locale
StateVersion
TimeZone
ZFS-Use-Case
;
in
with lib; {
@@ -55,7 +54,6 @@ in
}
];
theme = mkForce "${pkgs.minimal-grub-theme}";
zfsSupport = ZFS-Use-Case;
};
systemd-boot = mkIf (BootLoader == "systemd-boot") {
configurationLimit = 50;

View File

@@ -1,42 +0,0 @@
{
hostname,
lib,
pkgs,
...
}: let
inherit
(import ../../hosts/${hostname}/env.nix)
KernelPackages
ZFS-Networking-HostID
ZFS-Use-Case
;
in
with lib; {
config = mkIf ZFS-Use-Case {
boot = {
kernelParams = ["zfs_force=1"];
supportedFilesystems = ["zfs"];
zfs = {
devNodes = "/dev/disk/by-id";
forceImportRoot = false;
package = mkIf (strings.hasInfix "linuxPackages_cachyos" KernelPackages) pkgs.zfs_cachyos;
};
};
networking.hostId = ZFS-Networking-HostID;
services.zfs = {
autoScrub = {
enable = true;
interval = "weekly";
};
trim = {
enable = true; # HDD no need
interval = "weekly";
};
autoSnapshot.enable = true;
};
systemd.services = {
zfs-share.enable = mkForce false;
zfs-zed.enable = mkForce false;
};
};
}