···11+#!/usr/bin/env bash
22+set -xe
33+44+# SPDX-License-Identifier: MPL
55+#
66+# This script is specific to @ajhalili2006's dotfiles repository, mainly
77+# to deploy changes of shared/home-manager/main.nix in this repository
88+# to .config/home-manager/meta.nix in the dotfiles@nixpkgs repo. (For context
99+# the meta.nix itself is where the bulk of my customizations go by, and the
1010+# hone.nix will be specific to what host am I with help from Git branches.)
1111+NIXOS_CONFIG_DIR=${NIXOS_CONFIG_DIR:-"$HOME/.config/nixos"}
1212+1313+cp -vr flake.* shared hosts "$NIXOS_CONFIG_DIR/"
1414+cp -vr shared/home-manager/main.nix "$HOME/.config/home-manager/meta.nix"