Remove useless gfx stuff

This commit is contained in:
notgne2 2021-07-10 12:20:18 -07:00
parent 382719d458
commit feb79391be
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -59,14 +59,10 @@ let
# Set some X11 props
services.xserver = {
enable = lib.mkDefault (cfg.gfx == "nvidia");
enable = lib.mkDefault false;
layout = lib.mkDefault "us";
libinput.enable = true;
# automatic gfx drivers
videoDrivers = mkIf (cfg.gfx != null) [ cfg.gfx ];
};
boot.initrd.kernelModules = mkIf (cfg.gfx != null && cfg.gfx == "amdgpu") [ cfg.gfx ];
security.pam.services = {
swaylock.text = ''
auth include login
@ -178,13 +174,6 @@ in
description = "If this PC has a touchscreen";
};
gfx = mkOption {
type = types.nullOr types.str;
default = null;
description = "Type of your PC's graphics card";
example = "intel";
};
print = mkOption {
type = types.bool;
default = false;