{ config, lib, pkgs, ... }: { imports = [ ]; options.me = { webcam.enable = lib.mkOption { type = lib.types.bool; default = false; example = true; description = "Whether we want to install webcam."; }; }; config = lib.mkIf config.me.webcam.enable { environment.systemPackages = with pkgs; [ v4l-utils ]; }; }