diff options
author | William Carroll <wpcarro@gmail.com> | 2021-10-23T22·36-0700 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-08T04·28+0000 |
commit | ce87105c6d10e83fd03fe64432971e9de2caa440 (patch) | |
tree | be930ffa173ee655ae478cfa3bffd7b8b32e3e6f /users/wpcarro/Makefile | |
parent | 7cac51a995f687c4813e8558f3d7fad564a2a084 (diff) |
refactor(wpcarro/configs): Nixify configs/{install,uninstall} r/3527
After receiving another computer from Google and attempting to "easily" install my configuration, I realized that I had some holes. In reality these could (and perhaps should) be easily tested using CI that attempts to cleanly install my configuration on various platfoms (e.g. Debian, NixOS), but I'm not interested in supporting something like that (at least not at the moment). For now, it suffices to nixify some of the lingering shell scripts with implicit dependencies on tools like `stow`. > Don't let perfect be the enemy of good? Change-Id: Ifdeac2c855e46973e3a4ea416418109a748eb41d Reviewed-on: https://cl.tvl.fyi/c/depot/+/4790 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users/wpcarro/Makefile')
-rw-r--r-- | users/wpcarro/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/users/wpcarro/Makefile b/users/wpcarro/Makefile index 52f46d0ea68b..4e3361b80086 100644 --- a/users/wpcarro/Makefile +++ b/users/wpcarro/Makefile @@ -1,9 +1,17 @@ -install: - source "${WPCARRO}/configs/install" +install-cli-tools: + nix-env -f "${BRIEFCASE}" -iA shared.cliTools -uninstall: - source "${WPCARRO}/configs/uninstall" +install-configs: + nix-build -A configs.install && \ + ./result && \ + rm ./result + +uninstall-configs: + nix-build -A configs.uninstall && \ + ./result && \ + rm ./result list-broken-links: - find "${HOME}" -maxdepth 1 -xtype l && \ - find "${HOME}/.config" -maxdepth 1 -xtype l + nix-build -A tools.symlinkManager && \ + ./result/bin/symlink-mgr -audit && \ + rm ./result |