common: drop all long-obsolete remnants of running in LXC containers

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2024-03-22 22:57:05 +01:00
parent f76378c829
commit d01c78c085
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A
3 changed files with 4 additions and 8 deletions

View file

@ -1,11 +1,11 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
boot.tmp.useTmpfs = true;
boot.loader.timeout = lib.mkForce 1;
boot.loader.grub = {
enable = lib.mkDefault (!config.boot.isContainer);
enable = true;
copyKernels = true;
fsIdentifier = "uuid";
configurationLimit = 8;

View file

@ -1,6 +1,4 @@
{ config, ... }:
{
services.fstrim.enable = true;
services.irqbalance.enable = !config.boot.isContainer;
services.irqbalance.enable = true;
}

View file

@ -1,7 +1,5 @@
{ config, lib, ... }:
{
boot.kernel.sysctl = lib.mkIf (!config.boot.isContainer) {
boot.kernel.sysctl = {
# Discourage from swapping out idle processes
"vm.swappiness" = 1;