mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-05 09:38:07 +08:00
treewide: move hidpi settings to another module, make conditional on nixos version
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
{lib, ...}: {
|
||||
{
|
||||
imports = [
|
||||
../../common/pc/laptop
|
||||
../../common/pc/laptop/ssd
|
||||
../../common/cpu/intel
|
||||
../../common/cpu/intel/kaby-lake
|
||||
../../common/hidpi.nix
|
||||
];
|
||||
|
||||
# HiDPI settings
|
||||
hardware.video.hidpi.enable = lib.mkDefault true;
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ in
|
||||
imports = [
|
||||
../../common/pc/laptop
|
||||
../../common/pc/laptop/ssd
|
||||
../../common/hidpi.nix
|
||||
];
|
||||
|
||||
# Necessary kernel modules
|
||||
@@ -34,7 +35,6 @@ in
|
||||
};
|
||||
|
||||
# More HiDPI settings
|
||||
hardware.video.hidpi.enable = true;
|
||||
services.xserver.dpi = 280;
|
||||
|
||||
# Necessary for audio support on the 1195G7 model
|
||||
|
||||
Reference in New Issue
Block a user