This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -2,16 +2,28 @@
config,
lib,
...
}: let
inherit (lib) mkIf mkOption types mkEnableOption;
}:
let
inherit (lib)
mkIf
mkOption
types
mkEnableOption
;
cfg = config.nixos.services.xserver;
in {
in
{
options = {
nixos.services.xserver = {
enable = mkEnableOption "Enables xserver";
videoDrivers = mkOption {
type = types.listOf (types.enum ["amdgpu" "nvidia"]);
default = ["amdgpu"];
type = types.listOf (
types.enum [
"amdgpu"
"nvidia"
]
);
default = [ "amdgpu" ];
description = "The names of the video drivers the configuration supports";
};
xkbLayout = mkOption {