30 lines
738 B
Nix
30 lines
738 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
cfg = config.modules.sysd.session.xserver.amd;
|
|
in {
|
|
options = {
|
|
modules.sysd.session.xserver.amd.enable = mkEnableOption "Enables xserver with amdgpu";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
services.xserver = {
|
|
enable = true;
|
|
videoDrivers = ["amdgpu"];
|
|
# xkb = {
|
|
# extraLayouts.hhkbse = {
|
|
# description = "HHKBse by cnst";
|
|
# languages = ["se"];
|
|
# symbolsFile = /home/cnst/.nix-config/nixos/hosts/cnix/xkb/symbols/hhkbse;
|
|
# };
|
|
# layout = "hhkbse";
|
|
# # dir = "/home/cnst/.nix-config/nixos/xkb";
|
|
# variant = "";
|
|
# options = "lv3:rwin_switch";
|
|
# };
|
|
};
|
|
};
|
|
}
|