2019-09-10 22:05:03 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
spacemsgGit = builtins.fetchGit https://github.com/astro/spacemsg.git;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ ../../../lib/lxc-container.nix
|
|
|
|
../../../lib/shared.nix
|
|
|
|
../../../lib/admins.nix
|
|
|
|
"${spacemsgGit}/spaceapi/module.nix"
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "spaceapi";
|
2020-05-22 17:24:56 +02:00
|
|
|
networking.interfaces.eth0.ipv4.addresses = [ { address = "172.20.73.25"; prefixLength = 26; } ];
|
|
|
|
networking.defaultGateway = "172.20.73.1";
|
2020-06-24 18:30:11 +02:00
|
|
|
networking.firewall.enable = false;
|
2019-09-10 22:05:03 +02:00
|
|
|
|
|
|
|
services.spaceapi = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# This value determines the NixOS release with which your system is to be
|
|
|
|
# compatible, in order to avoid breaking some software such as database
|
|
|
|
# servers. You should change this only after NixOS release notes say you
|
|
|
|
# should.
|
|
|
|
system.stateVersion = "19.03"; # Did you read the comment?
|
|
|
|
}
|