Configuration is now held by the `.org` files. All `.nix` files are tangled from the org-mode files.
28 lines
597 B
Nix
28 lines
597 B
Nix
{
|
|
flake.modules.nixos.xserver = {
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.mySystem.desktop.xserver;
|
|
in {
|
|
options.mySystem.desktop.xserver = {
|
|
videoDrivers = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [];
|
|
example = ["amdgpu"];
|
|
description = "Extra X11 video drivers to load";
|
|
};
|
|
};
|
|
config.services.xserver = {
|
|
enable = true;
|
|
videoDrivers = cfg.videoDrivers;
|
|
xkb = {
|
|
layout = "fr";
|
|
variant = "bepo_afnor";
|
|
};
|
|
};
|
|
};
|
|
}
|