mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(desktop): keep named podman images when pruning (#435)
Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
5c5c11d646
commit
6a19f6b249
1 file changed
+5
-1
@@ -36,11 +36,15 @@
|
||||
|
||||
# Prune the rootless store (the module's autoPrune only covered the rootful
|
||||
# one). Runs in the user's session, so it fires while the desktop is logged in.
|
||||
#
|
||||
# No `--all`: prune only dangling images, keeping rollback tags and pinned base
|
||||
# images. An `until=` filter cannot do this, since these images are built with
|
||||
# a fixed epoch (reproducible builds) and the filter reads that build time.
|
||||
systemd.user.services.podman-prune = {
|
||||
description = "Prune rootless podman resources";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${lib.getExe config.virtualisation.podman.package} system prune -f --all";
|
||||
ExecStart = "${lib.getExe config.virtualisation.podman.package} system prune -f";
|
||||
};
|
||||
};
|
||||
systemd.user.timers.podman-prune = {
|
||||
|
||||
Reference in new issue
Block a user