diff --git a/hosts/containers/spaceapi/configuration.nix b/hosts/containers/spaceapi/configuration.nix new file mode 100644 index 00000000..8f165a63 --- /dev/null +++ b/hosts/containers/spaceapi/configuration.nix @@ -0,0 +1,28 @@ +{ 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"; + networking.useNetworkd = true; + networking.defaultGateway = "172.22.99.4"; + networking.useDHCP = lib.mkForce true; + + 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? +} diff --git a/hq.nixops b/hq.nixops index 54443e4f..c0512737 100644 --- a/hq.nixops +++ b/hq.nixops @@ -127,5 +127,16 @@ }; }; + "spaceapi" = + { ... }: + { + imports = [ + hosts/containers/spaceapi/configuration.nix + ]; + deployment = { + targetHost = "2a02:8106:208:5282:1457:adff:fe93:62e9"; + storeKeysOnMachine = true; + }; + }; }