diff --git a/hosts/VEGAS/services/ipfs/default.nix b/hosts/VEGAS/services/ipfs/default.nix index edac3b6..f12097a 100644 --- a/hosts/VEGAS/services/ipfs/default.nix +++ b/hosts/VEGAS/services/ipfs/default.nix @@ -71,6 +71,22 @@ in postStart = "chmod 660 /run/ipfs/ipfs-api.sock"; }; + systemd.slices.remotefshost.sliceConfig = { + IOWeight = 5; + IOReadIOPSMax = [ + "/dev/sda 100" + "/dev/sdb 100" + ]; + IOWriteIOPSMax = [ + "/dev/sda 100" + "/dev/sdb 100" + ]; + IODviceLatencyTargetSec = [ + "/dev/sda 500ms" + "/dev/sdb 500ms" + ]; + }; + environment.variables.IPFS_PATH = lib.mkForce "${ipfsApi}"; environment.shellAliases = {