{ inputs, pkgs, ... }: let cupsadminPkg = pkgs.fetchurl { url = "https://github.com/kfattic/cupsadmin/releases/download/v1.4.1/cupsadmin-1.4.1.pkg"; hash = "sha256-DyIyDYSjAlcU7ivyfldMapIZw5nczEBXfnLicnK6k7Y="; }; in { system.activationScripts.postActivation.text = '' want="${cupsadminPkg}" stamp=/usr/local/share/cupsadmin-pkg.stamp if [ "$(cat "$stamp" 2>/dev/null)" != "$want" ]; then echo "installing cupsadmin..." if /usr/sbin/installer -pkg "$want" -target /; then mkdir -p /usr/local/share echo "$want" > "$stamp" else echo "cupsadmin install failed, skipping" fi fi ''; environment.shellAliases = { yt = "yt-dlp"; ll = "ls -la"; }; environment.etc."gitconfig".text = '' [user] name = Brian Nelson email = brian@briannelson.dev [init] defaultBranch = main ''; environment.etc."yt-dlp.conf".text = '' -o /Users/briannelson/Downloads/yt-dlp/%(title)s.%(ext)s --no-mtime --restrict-filenames --embed-thumbnails --embed-metadata --format "bestvideo[height<=1080]+bestaudio/best[height<=1080]" --merge-output-format mp4 ''; }