nixos: update locks and rootless podman prune

This commit is contained in:
2026-02-13 00:26:08 -08:00
committed by Kat Huang
parent e9266b3b10
commit 71c624326e
4 changed files with 133 additions and 28 deletions

View File

@@ -12,6 +12,36 @@
};
};
# Rootless podman stores images/layers under ~/.local/share/containers.
# NixOS' `virtualisation.podman.autoPrune` only affects the rootful store,
# so we prune the per-user store with a user timer.
systemd.user.services.podman-auto-prune = {
Unit = {
Description = "Podman auto prune (rootless)";
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.podman}/bin/podman system prune -a -f";
};
};
systemd.user.timers.podman-auto-prune = {
Unit = {
Description = "Podman auto prune (rootless)";
};
Timer = {
OnCalendar = "daily";
Persistent = true;
RandomizedDelaySec = "1h";
};
Install = {
WantedBy = [ "timers.target" ];
};
};
systemd.user.services.hyprpaper = let
wallpaperDir = "/var/lib/syncthing/sync/Wallpaper";
waitForWayland = pkgs.writeShellScript "wait-for-wayland" ''