diff options
author | azahi <azat@bahawi.net> | 2025-01-01 13:10:32 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-01-01 13:10:32 +0300 |
commit | 7c06c0a354b106e37e26ddfc2bc6ba8336d90cc7 (patch) | |
tree | d52c7729b2aa8d81aaa18301d70877a6911a2167 /configurations/eonwe/default.nix | |
parent | 2024-12-17 (diff) |
2025-01-01
Diffstat (limited to 'configurations/eonwe/default.nix')
-rw-r--r-- | configurations/eonwe/default.nix | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/configurations/eonwe/default.nix b/configurations/eonwe/default.nix index f718135..875f737 100644 --- a/configurations/eonwe/default.nix +++ b/configurations/eonwe/default.nix @@ -193,34 +193,7 @@ with lib; cores = 30; }; - # Required[1] for using ZFS kernel modules with "unsupported" kernels. - # - # [1]: https://github.com/NixOS/nixpkgs/pull/121113#issuecomment-830003344 - # [1]: https://github.com/NixOS/nixpkgs/pull/230498#issuecomment-1551328615 - nixpkgs.config.allowBroken = true; - boot = { - kernelPackages = pkgs.linuxPackages_xanmod_latest; - - kernelParams = [ - # Silence benign MCE errors: - # ``` - # mce: [Hardware Error]: CPU 1: Machine Check: 0 Bank 29: ffffffffffffffff - # mce: [Hardware Error]: TSC 0 MISC ff1fffffffffffff SYND ffffffffffffffff IPID ffffffffffffffff - # mce: [Hardware Error]: PROCESSOR 2:a60f12 TIME 1669988017 SOCKET 0 APIC 2 microcode a601201 - # ``` - "mce=nobootlog" - # This disables[1] User Mode Instruction Protection (UMIP)[2]. This is - # required for some games to run via Wine. - # - # [1]: https://docs.kernel.org/x86/cpuinfo.html - # [2]: https://en.wikichip.org/wiki/x86/umip - "clearcpuid=514" - ]; - - # https://wiki.archlinux.org/title/improving_performance#Watchdogs - blacklistedKernelModules = [ "sp5100_tco" ]; - # The boot drive is Samsung SSD 980 PRO 2TB. initrd.kernelModules = [ "nvme" ]; @@ -306,26 +279,9 @@ with lib; "/home/${my.username}".neededForBoot = true; }; - systemd.mounts = [ - { - type = "tmpfs"; - what = "tmpfs"; - where = "/var/tmp"; - mountConfig.Options = [ - "huge=within_size" - "mode=1777" - "noatime" - "nodev" - "nosuid" - "rw" - "size=25%" - ]; - } - ]; - zramSwap = { enable = true; - memoryPercent = 25; + memoryPercent = 50; }; my.extraGroups = [ "corectrl" ]; |