Remove gc from home-manager task

main
Julius Riegel 8 months ago
parent 5227f66656
commit ab3db2e209

@ -42,7 +42,6 @@ end
exports.after_apply_all = function() 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 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 ha = utils.ext "home-manager"
local nix_store = utils.ext "nix-store"
log.info("Applying home-manager config") log.info("Applying home-manager config")
ha { "switch" } ha { "switch" }
@ -50,9 +49,6 @@ exports.after_apply_all = function()
log.info "Expiring old home manager configurations" log.info "Expiring old home manager configurations"
ha { "expire-generations", "-1 days" } ha { "expire-generations", "-1 days" }
log.info "Running nix gc"
nix_store { "--gc" }
log.info "Clear invalid links" log.info "Clear invalid links"
clear_invalid_links() clear_invalid_links()

Loading…
Cancel
Save