clear (refactor options): refactor options
This commit is contained in:
parent
00ea2b0c36
commit
bfce36ce73
22 changed files with 340 additions and 463 deletions
|
|
@ -1,19 +1,15 @@
|
|||
{ lib, config, ... }:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
|
||||
cfg = config.host.xserver;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
host.xserver = {
|
||||
enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
description = "Xserver configurations for host.";
|
||||
};
|
||||
};
|
||||
options.host.xserver = {
|
||||
enable = mkEnableOption "Xserver configurations for host.";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
config = mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
xkb = {
|
||||
|
|
|
|||
Reference in a new issue