summaryrefslogtreecommitdiff
path: root/hosts/dishwasher
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/dishwasher')
-rw-r--r--hosts/dishwasher/default.nix8
-rw-r--r--hosts/dishwasher/oxalab.nix32
-rw-r--r--hosts/dishwasher/secrets.nix9
3 files changed, 49 insertions, 0 deletions
diff --git a/hosts/dishwasher/default.nix b/hosts/dishwasher/default.nix
new file mode 100644
index 0000000..c50e6cf
--- /dev/null
+++ b/hosts/dishwasher/default.nix
@@ -0,0 +1,8 @@
+{
+ imports = [
+ ./configuration.nix
+ ./hardware-configuration.nix
+ ./secrets.nix
+ ./oxalab.nix
+ ];
+}
diff --git a/hosts/dishwasher/oxalab.nix b/hosts/dishwasher/oxalab.nix
new file mode 100644
index 0000000..b6521cf
--- /dev/null
+++ b/hosts/dishwasher/oxalab.nix
@@ -0,0 +1,32 @@
+{ config, ... }:
+{
+ systemd.network = {
+ netdevs."oxalab" = {
+ netdevConfig = {
+ Kind = "wireguard";
+ Name = "oxalab";
+ Description = "oxa's enterprise network";
+ };
+ wireguardConfig = {
+ PrivateKeyFile = config.sops.secrets."wg/oxalab-seckey".path;
+ };
+ wireguardPeers = [
+ {
+ # cirrus
+ wireguardPeerConfig = {
+ PublicKey = "5nCVC21BL+1r70OGwA4Q6Z/gcPLC3+ZF8sTurdn7N0E=";
+ AllowedIPs = [ "10.66.66.0/24" ];
+ Endpoint = [ "95.216.166.21:51820" ];
+ PersistentKeepalive = 25;
+ };
+ }
+ ];
+ };
+ networks."oxalab" = {
+ matchConfig.Name = "oxalab";
+ networkConfig = {
+ Address = "10.13.37.100";
+ };
+ };
+ };
+}
diff --git a/hosts/dishwasher/secrets.nix b/hosts/dishwasher/secrets.nix
new file mode 100644
index 0000000..679c511
--- /dev/null
+++ b/hosts/dishwasher/secrets.nix
@@ -0,0 +1,9 @@
+{ config, ... }:
+{
+ sops.defaultSopsFile = ../../secrets/dishwasher/secrets.yaml;
+ sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
+
+ sops.secrets = {
+ "wg/oxalab-seckey" = { };
+ };
+}