mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix: recent nixos module changes
This commit is contained in:
parent
439674d510
commit
5bdf4f625f
1 changed files with 8 additions and 8 deletions
|
|
@ -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%";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue