From d85b2267076a31dfcd1e94c461fa1a741cf282b2 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 28 Nov 2022 22:42:27 +0000 Subject: [PATCH] nixos/whale2: Add whitelist for Valheim --- nixos/boxes/colony/vms/whale2/valheim.nix | 7 +++++++ secrets/whale2/valheim.env.age | 19 ++++++++++--------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/nixos/boxes/colony/vms/whale2/valheim.nix b/nixos/boxes/colony/vms/whale2/valheim.nix index 5f83f0a..de642d2 100644 --- a/nixos/boxes/colony/vms/whale2/valheim.nix +++ b/nixos/boxes/colony/vms/whale2/valheim.nix @@ -1,5 +1,6 @@ { lib, config, allAssignments, ... }: let + inherit (lib) concatStringsSep; inherit (lib.my) dockerNetAssignment; in { @@ -13,6 +14,12 @@ in SERVER_PUBLIC = "true"; WORLD_NAME = "simpland2"; ADMINLIST_IDS = "76561198049818986"; + PERMITTEDLIST_IDS = concatStringsSep " " [ + "76561198049818986" # /dev/player0 + "76561198044432445" # Nuda + "76561198121606266" # El Pugador + "76561198059894566" # hynge + ]; TZ = "Europe/Dublin"; }; environmentFiles = [ config.age.secrets."whale2/valheim.env".path ]; diff --git a/secrets/whale2/valheim.env.age b/secrets/whale2/valheim.env.age index c11c710..cd2a666 100644 --- a/secrets/whale2/valheim.env.age +++ b/secrets/whale2/valheim.env.age @@ -1,10 +1,11 @@ age-encryption.org/v1 --> ssh-ed25519 /EJXvg BJZrrIl9HdCRVcGbolryOYl07K/Af4lwdo0kcdfi1nE -Z/zOV6v9llrTCguPg2pFSmJFFlY2Bv7rLYF8ynHT+gA --> X25519 Mxyf7SL+faoCveud/lCQFcjyKMNxTnKsqwKTbznaPic -oDSnX4u5ked4Rfnt0giv1MQKPNChuvyd9hqnPX1JPTQ --> 1*T*F|}-grease '`: I"ixoC k~b=\i%m mPT2XC -E3KZgVKf5pW4H6o1lQcxWTFNL7M1BBIYjrGO5g2BAEXJRi4klfzRL9DwRXrs2/Rm -pJHAEuTpdD0j1JegZpB9ObocIy6UuL+/Ng5yDQk ---- ODMxWjzAalxE3jjTHTest+r6B0tnS5xKScTzzAbEJgg -G5s=^ؖsr)qך"4p3KvQĄ6@0} \ No newline at end of file +-> ssh-ed25519 /EJXvg LuVK4df8MhZbMVy4+hnickrwf3jzMbIk8QQy+yQewmg +AmmV9iBOS92V9Q0yAdUCNmTJPrvsLvB1HmqNXfwDV2Y +-> X25519 ouVt0Q4wwEhyD8HMq0HXYbzKA6Lar2iaQFee2QWggVY +ULL5mW8Wf1i4beanQ2okNsuI4muVywX+J/91jJrBJ24 +-> ]-FKc-grease xPu=4!Dc .&# ++ddOZg74w8K2kAIHzCHObn5LfFHI2mlHKESnpbo14hPDQ1T+A7U12LTBx0/HLh/Z +aGESKjoZR9WPoZTXeRT8beJlltQYZQekkebxD7iCo4jKbVZlb5ae9hwoR6HFYg +--- Zp3WIi8ivfjxALtuYrRr2sa8B/LZ2n9OEUWXS6niShE +쑎>ꚲYb2 +yV6oq#RbA!D`:-^ \ No newline at end of file