26 lines
480 B
Nix
26 lines
480 B
Nix
|
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.local.sys.graphics;
|
||
|
in {
|
||
|
options.local.sys.graphics = {
|
||
|
enable = mkEnableOption "graphics settings";
|
||
|
};
|
||
|
config = mkIf cfg.enable {
|
||
|
services.xserver = {
|
||
|
enable = true;
|
||
|
xkb.layout = "us"; #TODO
|
||
|
displayManager.startx.enable = true; #TODO maybe crear un modulo para ly?
|
||
|
libinput.enable = true;
|
||
|
};
|
||
|
|
||
|
hardware.graphics.enable = true;
|
||
|
|
||
|
programs.dconf.enable = true;
|
||
|
};
|
||
|
}
|