From ee2618061d61e6650152a11cbd78fdcaaa94aac2 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Mon, 19 Feb 2024 09:08:42 -0800 Subject: [PATCH] chore: lean closures --- nixos/reisen-ct/proxmox.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nixos/reisen-ct/proxmox.nix b/nixos/reisen-ct/proxmox.nix index bf1dbe7c..80da26e3 100644 --- a/nixos/reisen-ct/proxmox.nix +++ b/nixos/reisen-ct/proxmox.nix @@ -1,10 +1,19 @@ { + lib, modulesPath, ... -}: { +}: let + inherit (lib.modules) mkDefault; +in { imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ]; - services.getty.autologinUser = "root"; + services.getty.autologinUser = mkDefault "root"; + documentation.enable = mkDefault false; + + environment.variables = { + # nix default is way too big + GC_INITIAL_HEAP_SIZE = mkDefault "8M"; + }; }