{ config, pkgs, ... }: let inherit (pkgs.lib) mkOption mkEnableOption mkIf mkMerge types optionalAttrs optional; cfg = config.services.uptime; configDir = pkgs.runCommand "config" {} (if cfg.configFile != null then '' mkdir $out ext=`echo ${cfg.configFile} | grep -o \\..*` ln -sv ${cfg.configFile} $out/default$ext ln -sv /var/lib/uptime/runtime.json $out/runtime.json '' else '' mkdir $out cat ${pkgs.nodePackages.node-uptime}/node_modules/node-uptime/config/default.yaml > $out/default.yaml cat >> $out/default.yaml <