[moderatio] make it boot on acutal machine

the machine is quite limitted with just 1gb ram
This commit is contained in:
2022-10-07 14:01:52 +02:00
parent 8756f418f0
commit 4553883073
2 changed files with 13 additions and 1 deletions

View File

@@ -5,6 +5,18 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
services.acpid.enable = true;
boot.kernelPackages = pkgs.linuxPackages_5_4;
services.xserver.videoDrivers = [ "intel" ];
services.xserver.deviceSection = ''
Option "DRI" "2"
Option "TearFree" "true"
'';
zramSwap.enable = true;
zramSwap.memoryPercent = 150;
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix

View File

@@ -2,7 +2,7 @@
{ boot.supportedFilesystems = [ "zfs" ]; { boot.supportedFilesystems = [ "zfs" ];
networking.hostId = "ae749b82"; networking.hostId = "ae749b82";
boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; #boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.loader.efi.efiSysMountPoint = "/boot/efi"; boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.efi.canTouchEfiVariables = false; boot.loader.efi.canTouchEfiVariables = false;
boot.loader.generationsDir.copyKernels = true; boot.loader.generationsDir.copyKernels = true;