modularize system graphics settings

This commit is contained in:
Fabian Montero 2024-12-02 14:28:35 -06:00
parent 01f1576b8a
commit 99816f0d3f
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
4 changed files with 50 additions and 19 deletions

25
sys/modules/graphics.nix Normal file
View file

@ -0,0 +1,25 @@
{
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;
};
}