More swap usage on foureighty

This commit is contained in:
Cyryl Płotnicki 2020-07-11 21:02:36 +01:00
parent 5ff55c756b
commit 4f19d4970f
3 changed files with 27 additions and 2 deletions

View file

@ -4,7 +4,6 @@
boot = {
kernel.sysctl = {
"vm.swappiness" = 1;
"max_user_watches" = 524288;
"kernel.dmesg_restrict" = true;
"kernel.unprivileged_bpf_disabled" = true;

View file

@ -24,13 +24,17 @@
time.timeZone = "Europe/London";
hardware.trackpoint.enable = true;
zramSwap = {
enable = true;
algorithm = "zstd";
};
services.hardware.bolt.enable = true;
services.fprintd = {
enable = true;
};
imports = [
/etc/nixos/hardware-configuration.nix
./hardware-configuration.nix
../../boot.nix
../../common.nix
../../gfx-nvidia-optimus.nix

View file

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
{
imports = [ ];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.kernel.sysctl = {
"vm.swappiness" = 50;
};
fileSystems."/" = { device = "/dev/disk/by-uuid/7ae9348d-604e-4196-a27b-24a7495438c3"; fsType = "ext4"; };
fileSystems."/boot" = { device = "/dev/disk/by-uuid/C4DD-2374"; fsType = "vfat"; };
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 8;
}