From d01c78c085951d49a1d9e21bf5bb765dd439e7b2 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Fri, 22 Mar 2024 22:57:05 +0100 Subject: [PATCH] common: drop all long-obsolete remnants of running in LXC containers Signed-off-by: Christoph Heiss --- common/boot.nix | 4 ++-- common/services.nix | 4 +--- common/sysctl.nix | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/common/boot.nix b/common/boot.nix index 8a93219..c094619 100644 --- a/common/boot.nix +++ b/common/boot.nix @@ -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; diff --git a/common/services.nix b/common/services.nix index bafb867..6750d72 100644 --- a/common/services.nix +++ b/common/services.nix @@ -1,6 +1,4 @@ -{ config, ... }: - { services.fstrim.enable = true; - services.irqbalance.enable = !config.boot.isContainer; + services.irqbalance.enable = true; } diff --git a/common/sysctl.nix b/common/sysctl.nix index 86d03f4..4482fd7 100644 --- a/common/sysctl.nix +++ b/common/sysctl.nix @@ -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;