#!/bin/sh -eux
home-manager switch -f "${0%/*}"/../homes.nix
nix-env --delete-generations +1 --profile /nix/var/nix/profiles/per-user/"$USER"/home-manager