2021-03-28 13:10:27 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
../lib/bvm.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Networking!
|
|
|
|
networking = {
|
|
|
|
hostName = "bvm-ipfs";
|
|
|
|
hostId = "6eca8221";
|
|
|
|
|
|
|
|
interfaces.enp1s0 = {
|
|
|
|
ipv4.addresses = [{ address = "10.100.0.203"; prefixLength = 23; }];
|
|
|
|
};
|
|
|
|
};
|
2021-03-28 14:00:25 +00:00
|
|
|
my.ip.tailscale = "100.73.206.41";
|
2021-03-28 13:10:27 +00:00
|
|
|
|
2021-03-28 15:34:54 +00:00
|
|
|
services.ipfs = {
|
|
|
|
enable = true;
|
|
|
|
dataDir = "/store/ipfs";
|
|
|
|
extraConfig = {
|
|
|
|
Experimental.FilestoreEnabled = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-03-28 13:10:27 +00:00
|
|
|
system.stateVersion = "21.05";
|
|
|
|
}
|