From 8662a3e31141d9714e1c58d795a4c3d9dd1077eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Fri, 3 Nov 2023 23:02:25 +0100 Subject: [PATCH] feat: update chocolatebar swapfile size --- hosts/chocolatebar/hardware-configuration.nix | 2 +- hosts/chocolatebar/virtualisation/default.nix | 2 +- modules/virtualisation/default.nix | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/hosts/chocolatebar/hardware-configuration.nix b/hosts/chocolatebar/hardware-configuration.nix index 9c077c4..c4e60e5 100644 --- a/hosts/chocolatebar/hardware-configuration.nix +++ b/hosts/chocolatebar/hardware-configuration.nix @@ -32,7 +32,7 @@ swapDevices = [ { device = "/swapfile"; - size = 68 * 1024; # 68 GB + size = 132 * 1024; # 132 GB } ]; } diff --git a/hosts/chocolatebar/virtualisation/default.nix b/hosts/chocolatebar/virtualisation/default.nix index 6d2287e..fab031d 100644 --- a/hosts/chocolatebar/virtualisation/default.nix +++ b/hosts/chocolatebar/virtualisation/default.nix @@ -12,7 +12,7 @@ with lib; let generateTailsXML = import ./tails-xml.nix; isolateGPU = "rx550x"; - memory = 32; # in GB + memory = 112; # in GB handOverUSBDevices = false; isolateAnyGPU = isolateGPU != null; diff --git a/modules/virtualisation/default.nix b/modules/virtualisation/default.nix index e8c0087..31b7657 100644 --- a/modules/virtualisation/default.nix +++ b/modules/virtualisation/default.nix @@ -43,14 +43,4 @@ in { systemd.tmpfiles.rules = [ "f /dev/shm/looking-glass 0660 ${psCfg.user.name} kvm" ]; - - networking.bridges.virbr0.interfaces = []; - networking.interfaces.virbr0 = { - ipv4.addresses = [ - { - address = "192.168.122.1"; - prefixLength = 24; - } - ]; - }; }