dotfiles/.sd/nix/sync

15 lines
344 B
Bash
Executable File

#!/usr/bin/env bash
# make user environment match ~/.dotfiles/user.nix
#
# This will remove any packages you've installed with nix-env
# but have not added to user.nix. To see exactly what this
# will do, run:
#
# sd nix diff
# https://github.com/ianthehenry/sd-nix/blob/master/sync
set -euo pipefail
nix-env -irf ~/.dotfiles/user.nix