marukuru: set journald SystemMaxUse to cap log size

This commit is contained in:
Luke Granger-Brown 2020-12-06 15:18:14 +00:00
parent 51e09efdfc
commit 26de73b0fb
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,13 @@
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ pkgs, depot, lib, ... }:
in
{
config = {
services.journald.extraConfig = lib.mkAfter ''
SystemMaxUse=50M
'';
};
}

View file

@ -6,7 +6,10 @@
let let
inherit (depot.ops) secrets; inherit (depot.ops) secrets;
in { in {
imports = [ ../../../third_party/nixpkgs/nixos/modules/profiles/qemu-guest.nix ]; imports = [
../../../third_party/nixpkgs/nixos/modules/profiles/qemu-guest.nix
../lib/low-space.nix
];
boot.kernelModules = [ "tcp_bbr" ]; boot.kernelModules = [ "tcp_bbr" ];
boot.kernel.sysctl = { boot.kernel.sysctl = {
"net.ipv6.conf.default.accept_ra" = 1; "net.ipv6.conf.default.accept_ra" = 1;
@ -159,6 +162,9 @@ in {
containers.deployer = { containers.deployer = {
config = { config, pkgs, ... }: { config = { config, pkgs, ... }: {
imports = [
../lib/low-space.nix
];
networking.hosts = depot.ops.nixos.tailscaleIPs; networking.hosts = depot.ops.nixos.tailscaleIPs;
nix = { nix = {
binaryCaches = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ]; binaryCaches = lib.mkForce [ "https://cache.nixos.org/" "s3://lukegb-nix-cache?endpoint=storage.googleapis.com&trusted=1" ];