add (host options): add basic host options
This commit is contained in:
parent
83abf471a4
commit
0d99d55ef5
7 changed files with 242 additions and 0 deletions
25
options/host/xserver.nix
Normal file
25
options/host/xserver.nix
Normal 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 = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue