pin kernel to fix flicker
This commit is contained in:
parent
166a9cd75a
commit
6d342f9d6e
4 changed files with 130 additions and 103 deletions
|
@ -2,9 +2,8 @@
|
|||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ inputs, lib, self, ... }:
|
||||
let test = self.nixosConfigurations."bastion.olympus".config;
|
||||
in {
|
||||
{ inputs, lib, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-z
|
||||
|
@ -23,6 +22,8 @@ in {
|
|||
resumeDevice = "/dev/nvme0n1p2";
|
||||
loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
kernelPackages = pkgs.linuxPackages_6_6;
|
||||
|
||||
kernel.sysctl = {
|
||||
"perf_event_paranoid" = 1;
|
||||
"kptr_restrict" = 0;
|
||||
|
@ -38,10 +39,6 @@ in {
|
|||
|
||||
# Enable Ozone rendering for Chromium and Electron apps.
|
||||
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
environment.sessionVariables.myself = builtins.toJSON test;
|
||||
|
||||
|
||||
# environment.sessionVariables.INFRA_INFO = self; # hosts.${config.networking.domain}.${config.networking.hostName};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue