forked from fabian/nix_config
modularize system graphics settings
This commit is contained in:
parent
01f1576b8a
commit
99816f0d3f
4 changed files with 50 additions and 19 deletions
25
sys/modules/graphics.nix
Normal file
25
sys/modules/graphics.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue