This repository has been archived on 2025-10-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nixos-config/options/host/xserver.nix

25 lines
422 B
Nix

{ lib, config, ... }:
let
cfg = config.host.xserver;
in
{
options = {
host.xserver = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Xserver configurations for host.";
};
};
};
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
xkb = {
layout = "us";
variant = "";
};
};
};
}