improve size and swap for gateway

This commit is contained in:
soraefir
2026-06-21 23:09:33 +02:00
parent 473b290258
commit 6366d9b313
4 changed files with 24 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ config, lib, ... }: { { config, lib, ... }: {
imports = [ ./dbus ./fonts ./hw ./locale ./network ./nix ./security ./xdg ]; imports = [ ./dbus ./docs ./fonts ./hw ./locale ./network ./nix ./security ./xdg ];
services.journald.extraConfig = '' services.journald.extraConfig = ''
SystemMaxUse=512M SystemMaxUse=512M
+14
View File
@@ -0,0 +1,14 @@
{ config, lib, ... }:
let
cfg = config.syscfg.make;
withDocs = cfg.gui || cfg.develop || cfg.serverExtras;
in
{
documentation = lib.mkIf (!withDocs) {
enable = false;
man.enable = false;
info.enable = false;
doc.enable = false;
nixos.enable = false;
};
}
+4 -2
View File
@@ -1,4 +1,4 @@
{ inputs, pkgs, ... }: { { config, inputs, lib, pkgs, ... }: {
nixpkgs.config = { nixpkgs.config = {
permittedInsecurePackages = [ ]; permittedInsecurePackages = [ ];
allowUnfree = true; allowUnfree = true;
@@ -33,7 +33,9 @@
]; ];
}; };
}; };
programs.nix-ld = { programs.nix-ld = lib.mkIf (
config.syscfg.make.gui || config.syscfg.make.develop || config.syscfg.make.serverExtras
) {
enable = true; enable = true;
libraries = with pkgs; [ libraries = with pkgs; [
libx11 libxcb libxi libxext libxkbfile xcbutilcursor libx11 libxcb libxi libxext libxkbfile xcbutilcursor
+5
View File
@@ -17,4 +17,9 @@
10.10.1.2 avalon.helcel.net 10.10.1.2 avalon.helcel.net
''; '';
swapDevices = [ {
device = "/swapfile";
size = 2 * 1024; # Size in megabytes (4 GB)
} ];
} }