Remove useless gfx
stuff
This commit is contained in:
parent
382719d458
commit
feb79391be
@ -59,14 +59,10 @@ let
|
|||||||
|
|
||||||
# Set some X11 props
|
# Set some X11 props
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = lib.mkDefault (cfg.gfx == "nvidia");
|
enable = lib.mkDefault false;
|
||||||
layout = lib.mkDefault "us";
|
layout = lib.mkDefault "us";
|
||||||
libinput.enable = true;
|
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 = {
|
security.pam.services = {
|
||||||
swaylock.text = ''
|
swaylock.text = ''
|
||||||
auth include login
|
auth include login
|
||||||
@ -178,13 +174,6 @@ in
|
|||||||
description = "If this PC has a touchscreen";
|
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 {
|
print = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user