{ lib, config, pkgs, ... }: let programName = "kitty"; in { options.enableKitty = lib.mkEnableOption "Enable kitty terminal"; config = lib.mkIf (config.enableKitty or true) { myApps.${programName} = { enable = true; }; systemd.services."${programName}-sync" = { description = "Sync ${programName} configuration"; wantedBy = [ "multi-user.target" ]; serviceConfig = { Type = "oneshot"; ExecStart = '' echo "Syncing ${programName}" ''; }; restartTriggers = []; # Use pkgs passed to module path = [ pkgs.coreutils pkgs.gnugrep pkgs.gnused ]; }; }; }