summaryrefslogtreecommitdiff
path: root/Com/Simatime/Serval/configuration.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-03-30 17:18:15 -0700
committerBen Sima <ben@bsima.me>2020-03-30 17:18:15 -0700
commit1d368deec3956d97e2f55c23c1dca89b13f73c5e (patch)
tree4489667abaa364f8ed8492e0a5b274bbf975e90e /Com/Simatime/Serval/configuration.nix
parentd17bb903a66c2f551cadda4c51a6747c42440ae3 (diff)
Add nix service declaration for que.run
I'm using serval.simatime.com as a catch-all production app server for now. The 'que.run' domain is pointed at that instance, and the service is just installed as a regular NixOS systemd service. I had to do some troubleshooting because I wasn't getting any DNS names to resolve. I think changing the nameservers fixed it. Don't know why the 127 number was in there. Another issue concerns how to add our packages to the set of nixpkgs in the generated NixOS. I played around with this for a while and landed on using an overlay to put our set of packages under 'pkgs.biz.<name>', and then passing that in to the 'buildOS' function. This isn't really the best solution because it is confusing and rather disconnected. I'm starting to realize that it might be good to separate nix artifacts into "machines" and "programs", but I don't want to do that just yet. I'd like to finish designing my bild program before making any large design decisions or re-organizations.
Diffstat (limited to 'Com/Simatime/Serval/configuration.nix')
-rw-r--r--Com/Simatime/Serval/configuration.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/Com/Simatime/Serval/configuration.nix b/Com/Simatime/Serval/configuration.nix
new file mode 100644
index 0000000..d5ad02f
--- /dev/null
+++ b/Com/Simatime/Serval/configuration.nix
@@ -0,0 +1,11 @@
+{ config, pkgs, ... }:
+{
+ networking.firewall.allowedTCPPorts = [ 22 80 443 ];
+ services.que-server = {
+ enable = true;
+ domain = "que.run";
+ port = 3000;
+ package = pkgs.biz.que-server;
+ };
+ services.nginx.enable = true;
+}