add (host options): add basic host options

This commit is contained in:
Kirill Samoylenkov 2025-09-27 15:20:18 +05:00
parent 83abf471a4
commit 0d99d55ef5
7 changed files with 242 additions and 0 deletions

View file

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