fix silent boot and remove extra zfs stuff

This commit is contained in:
Gerg-L 2023-11-01 20:05:29 -04:00
parent d493b989cd
commit f872b7f9d2
Signed by: gerg-l
SSH key fingerprint: SHA256:FPYDHIkvMocr4wdmZXpgpJjsb2Tw6rASs2ISPbOb0KI
2 changed files with 4 additions and 16 deletions

View file

@ -32,15 +32,8 @@ _:
};
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
#disable hibernate and set cache max
kernelParams = [
"nohibernate"
"zfs.zfs_arc_max=17179869184"
];
kernelParams = [ "zfs.zfs_arc_max=17179869184" ];
initrd = {
supportedFilesystems = [
"zfs"
"vfat"
];
#module for multiple swap devices
kernelModules = [ "dm_mod" ];
#keyboard module for zfs password
@ -92,10 +85,5 @@ _:
};
};
};
systemd.services.zfs-mount.enable = false;
services.zfs = {
autoScrub.enable = true;
trim.enable = true;
};
_file = ./zfs.nix;
}

View file

@ -16,7 +16,7 @@
};
boot = {
blacklistedKernelModules = [ "pcspkr" ];
kernelParams = lib.mkAfter [
kernelParams = lib.mkBefore [
"acpi_call"
"pti=auto"
"randomize_kstack_offset=on"
@ -36,10 +36,10 @@
"logo.nologo"
"fbcon=nodefer"
"bgrt_disable"
"systemd.show_status=false"
"rd.udev.log_level=3"
"vt.global_cursor_default=0"
"quiet"
"systemd.show_status=false"
"rd.udev.log_level=3"
"splash"
];
consoleLogLevel = 3;