summaryrefslogtreecommitdiff
path: root/Com/Simatime/Prod
diff options
context:
space:
mode:
Diffstat (limited to 'Com/Simatime/Prod')
-rw-r--r--Com/Simatime/Prod/configuration.nix11
-rwxr-xr-xCom/Simatime/Prod/hardware.nix6
-rwxr-xr-xCom/Simatime/Prod/networking.nix28
3 files changed, 45 insertions, 0 deletions
diff --git a/Com/Simatime/Prod/configuration.nix b/Com/Simatime/Prod/configuration.nix
new file mode 100644
index 0000000..d5ad02f
--- /dev/null
+++ b/Com/Simatime/Prod/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;
+}
diff --git a/Com/Simatime/Prod/hardware.nix b/Com/Simatime/Prod/hardware.nix
new file mode 100755
index 0000000..8c88cb7
--- /dev/null
+++ b/Com/Simatime/Prod/hardware.nix
@@ -0,0 +1,6 @@
+{ ... }:
+{
+ imports = [ <nixpkgs/nixos/modules/profiles/qemu-guest.nix> ];
+ boot.loader.grub.device = "/dev/vda";
+ fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
+}
diff --git a/Com/Simatime/Prod/networking.nix b/Com/Simatime/Prod/networking.nix
new file mode 100755
index 0000000..79fbe27
--- /dev/null
+++ b/Com/Simatime/Prod/networking.nix
@@ -0,0 +1,28 @@
+{ lib, ... }: {
+ # This file was populated at runtime with the networking
+ # details gathered from the active system.
+ networking = {
+ nameservers = [
+ "67.207.67.2"
+ "67.207.67.3"
+ ];
+ defaultGateway = "157.245.160.1";
+ defaultGateway6 = "";
+ dhcpcd.enable = false;
+ usePredictableInterfaceNames = lib.mkForce true;
+ interfaces = {
+ eth0 = {
+ ipv4.addresses = [
+ { address="157.245.167.217"; prefixLength=20; }
+ { address="10.46.0.8"; prefixLength=16; }
+ ];
+ ipv6.addresses = [
+ { address="fe80::242a:8bff:feb7:6afb"; prefixLength=64; }
+ ];
+ };
+ };
+ };
+ services.udev.extraRules = ''
+ ATTR{address}=="26:2a:8b:b7:6a:fb", NAME="eth0"
+ '';
+}