common: drop all long-obsolete remnants of running in LXC containers
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
f76378c829
commit
d01c78c085
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
services.fstrim.enable = true;
|
||||
services.irqbalance.enable = !config.boot.isContainer;
|
||||
services.irqbalance.enable = true;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue