fix: recent nixos module changes

This commit is contained in:
arcnmx 2024-03-07 08:31:06 -08:00
parent 439674d510
commit 5bdf4f625f

View file

@ -3,11 +3,11 @@
lib, lib,
pkgs, pkgs,
... ...
}: }: let
with lib; { inherit (lib.modules) mkDefault;
boot.kernelPackages = mkIf (elem "zfs" config.boot.supportedFilesystems) (mkDefault config.boot.zfs.package.latestCompatibleLinuxPackages); in {
hardware.enableRedistributableFirmware = lib.mkDefault true; hardware.enableRedistributableFirmware = mkDefault true;
boot.zfs.enableUnstable = mkIf (elem "zfs" config.boot.supportedFilesystems) true; boot.zfs.package = mkDefault pkgs.zfs_unstable;
boot.kernel.sysctl = { boot.kernel.sysctl = {
"fs.inotify.max_user_watches" = 524288; "fs.inotify.max_user_watches" = 524288;
"net.core.rmem_max" = 16777216; "net.core.rmem_max" = 16777216;
@ -21,9 +21,9 @@ with lib; {
"net.ipv6.conf.default.accept_ra_rt_info_max_plen" = 128; "net.ipv6.conf.default.accept_ra_rt_info_max_plen" = 128;
}; };
services.journald.extraConfig = "SystemMaxUse=512M"; services.journald.extraConfig = "SystemMaxUse=512M";
users.mutableUsers = false; users.mutableUsers = mkDefault false;
boot.tmp = { boot.tmp = {
useTmpfs = true; useTmpfs = mkDefault true;
tmpfsSize = "80%"; tmpfsSize = mkDefault "80%";
}; };
} }