{ lib, config, ... }: let types = lib.types; sys = config.maid.sys; in { options.maid.sys = { enable = lib.mkEnableOption "whole maid system"; tz = lib.mkOption { type = types.str; default = "Europe/Moscow"; }; hostname = lib.mkOption { type = types.str; }; }; config = lib.mkIf sys.enable { time.timeZone = sys.tz; networking.hostName = sys.hostname; }; }