From 6eb992efdd68d80bc62bc7fc0562d8a2e6558096 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 6 Sep 2021 15:32:19 +0200 Subject: add nix build system and NixOS module --- example.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 example.nix (limited to 'example.nix') diff --git a/example.nix b/example.nix new file mode 100644 index 0000000..249ae4a --- /dev/null +++ b/example.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ ./module.nix ]; + + services.uplcg = { + enable = true; + port = 8080; + domain = "0.0.0.0"; + # cards = { + # generic = { + # enabled = true; + # black = [ + # "_ and white _" + # ]; + # white = [ + # "blue" + # "green" + # ]; + # }; + # }; + }; + + networking.firewall.allowedTCPPorts = [ 8080 ]; +} -- cgit v1.2.3