mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
feat: add plocate filesystem search and cap podman log size (#333)
This commit is contained in:
1 parent
8f9fdda2bb
commit
ab2fd0fee9
3 files changed
+20
No files matched your search
@@ -49,6 +49,8 @@ in
|
||||
"/etc/agenix/"
|
||||
|
||||
"/var/log"
|
||||
# system caches (e.g. restic, plocate; slow to rebuild)
|
||||
"/var/cache"
|
||||
|
||||
# system-core
|
||||
"/var/lib/nixos"
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
# Whole-filesystem filename search (`locate`), backed by plocate. It complements
|
||||
# `nix-index`/`nix-locate`, which only index the nix store.
|
||||
#
|
||||
# The database lives at /var/cache/locatedb. Hosts with an ephemeral root must
|
||||
# persist /var/cache as a directory (see hosts/idols-ai/preservation.nix): plocate
|
||||
# replaces the DB via a temp file + rename, which fails on a bind-mounted file.
|
||||
services.locate = {
|
||||
enable = true;
|
||||
package = pkgs.plocate;
|
||||
};
|
||||
}
|
||||
@@ -20,5 +20,10 @@
|
||||
flags = [ "--all" ];
|
||||
};
|
||||
};
|
||||
|
||||
# Bound container log growth. Podman uses journald when the journal is
|
||||
# writable, but rootless sessions can fall back to a file driver
|
||||
# (k8s-file / json-file), which otherwise grows without limit.
|
||||
containers.containersConf.settings.containers.log_size_max = 10 * 1024 * 1024;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user