From f5f54a2ec2eabdb06705772f8dfa038859c5b04c Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 13 Apr 2021 13:58:36 +0200 Subject: [PATCH] nixos: increase RAM in ERIS subsystem --- nixos-modules/eris/rom-fs.nix | 2 +- nixos-modules/eris/rom-memory.nix | 2 +- tests/graphics.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 tests/graphics.nix diff --git a/nixos-modules/eris/rom-fs.nix b/nixos-modules/eris/rom-fs.nix index b7e5fa0..4f0fb2b 100644 --- a/nixos-modules/eris/rom-fs.nix +++ b/nixos-modules/eris/rom-fs.nix @@ -15,7 +15,7 @@ in ${./rom-vfs.dhall} "${config.block.partitions.store.guid}" - Sigil.Init.Resources::{ caps = 256, ram = Sigil.units.MiB 16 } + Sigil.Init.Resources::{ caps = 256, ram = Sigil.units.MiB 32 } ( VFS.vfs [ VFS.leafAttrs "plugin" diff --git a/nixos-modules/eris/rom-memory.nix b/nixos-modules/eris/rom-memory.nix index 4582221..9bca43f 100644 --- a/nixos-modules/eris/rom-memory.nix +++ b/nixos-modules/eris/rom-memory.nix @@ -13,7 +13,7 @@ in ${./rom-vfs.dhall} ${../partition-type} - Sigil.Init.Resources::{=} + Sigil.Init.Resources::{ ram = Sigil.units.MiB 4 } ( VFS.vfs [ VFS.leafAttrs "tar" diff --git a/tests/graphics.nix b/tests/graphics.nix new file mode 100644 index 0000000..d4e59cc --- /dev/null +++ b/tests/graphics.nix @@ -0,0 +1,27 @@ +{ + name = "tor"; + machine = { config, lib, pkgs, ... }: { + + virtualisation.memorySize = 768; + + genode.gui.consoleLog.enable = true; + genode.core.storeBackend = "fs"; + hardware.genode.usb.enable = true; + hardware.genode.usb.storage.enable = true; + + services.tor = { + # enable = true; + client.enable = false; + extraConfig = '' + Log [general,net,config,fs]debug stdout + ''; + relay = { + enable = true; + port = 80; + role = "relay"; + bridgeTransports = [ ]; + }; + }; + + }; +}