Remove gc from home-manager task

main
Julius Riegel 9 months ago
parent 5227f66656
commit ab3db2e209

@ -42,7 +42,6 @@ end
exports.after_apply_all = function()
if utils.nu "which home-manager | is-empty" == "false\n" and (shasum { silo.dirs.config .. "/home-manager/home.nix" }).stdout ~= ha_checksum then
local ha = utils.ext "home-manager"
local nix_store = utils.ext "nix-store"
log.info("Applying home-manager config")
ha { "switch" }
@ -50,9 +49,6 @@ exports.after_apply_all = function()
log.info "Expiring old home manager configurations"
ha { "expire-generations", "-1 days" }
log.info "Running nix gc"
nix_store { "--gc" }
log.info "Clear invalid links"
clear_invalid_links()

Loading…
Cancel
Save