From 10368227fa0840051e6c0dd50406fcea862d66dd Mon Sep 17 00:00:00 2001 From: Pierre Martin Date: Wed, 14 Jun 2023 05:52:16 +0200 Subject: [PATCH] chore: linux kernel updates and remove deprecated config --- nixos/framework.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/framework.nix b/nixos/framework.nix index cce440c..63023c6 100644 --- a/nixos/framework.nix +++ b/nixos/framework.nix @@ -18,7 +18,7 @@ ]; # Use latest kernel version because on 5.15 screen is not detected properly (and external monitor doesn't work either) - boot.kernelPackages = pkgs.linuxPackages_6_0; # see https://github.com/NixOS/nixpkgs/issues/183955#issuecomment-1210468614 + boot.kernelPackages = pkgs.linuxPackages_6_1; # see https://github.com/NixOS/nixpkgs/issues/183955#issuecomment-1210468614 # prevent "/boot/efi No space left on device" errors - see https://github.com/NixOS/nixpkgs/issues/23926 boot.loader.grub.configurationLimit = 10; @@ -57,8 +57,12 @@ ]; ## Make it nice (https://nixos.wiki/wiki/Xorg && https://wiki.archlinux.org/title/Framework_Laptop#HiDPI_settings) # https://github.com/kvark/dotfiles/blob/master/nix/hardware-configuration.nix#L41 - hardware.video.hidpi.enable = lib.mkDefault true; + + # - The option definition `hardware.video.hidpi.enable' in `/etc/nixos/framework.nix' no longer has any effect; please remove it. + # Consider manually configuring fonts.fontconfig according to personal preference. + # hardware.video.hidpi.enable = lib.mkDefault true; services.xserver.dpi = 130; + environment.variables = { GDK_SCALE = "1.5"; GDK_DPI_SCALE = "0.77"; # 1/1.3