Skip to content

Commit

Permalink
feat(spy): re-enable monero
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsgirao committed Sep 13, 2024
1 parent f28bc20 commit eb9d8e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hosts/spy/machine.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ in
../../modules/impermanence.nix
../../modules/headless.nix
../../modules/blocky.nix
../../modules/monero.nix
];

services.nextcloud.home = "/data/nextcloud-nixos";
Expand Down Expand Up @@ -142,7 +143,6 @@ in
"--verbose"
];
};
services.earlyoom.enable = false; #TODO: disable when monerod finish

services.uptime-kuma = {
settings = {
Expand Down
9 changes: 8 additions & 1 deletion modules/archive/monero.nix → modules/monero.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{ config, ... }:
let
dataDir = "/var/monero";
dataDir = "/var/lib/monero";
in
{
environment.persistence."/state".directories = [
"/var/lib/monero"
];

networking.firewall = {
allowedTCPPorts = [
Expand All @@ -21,6 +24,10 @@ in
port = 18081;
address = config.rg.ip;
};
limits = rec {
download = "12500";
upload = download;
};
extraConfig = ''
no-zmq=1
no-igd=1
Expand Down

0 comments on commit eb9d8e9

Please sign in to comment.