dotfiles/.sd/nix/sync

15 lines
344 B
Plaintext
Raw Normal View History

2022-07-06 13:52:32 -04:00
#!/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