From 0b70729f14757f7c78d0b879794e979e48e7b637 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Fri, 18 Oct 2024 15:45:38 -0400 Subject: [PATCH] Add back secrets, again --- variables/secrets/default.nix | 65 +++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 variables/secrets/default.nix diff --git a/variables/secrets/default.nix b/variables/secrets/default.nix new file mode 100644 index 0000000..8b87e6c --- /dev/null +++ b/variables/secrets/default.nix @@ -0,0 +1,65 @@ +{ lib, config, ... }: +{ + options.secrets = lib.mkOption { + type = lib.types.attrs; + default = {}; + }; + + config.secrets = { + # Define domains + jimDomain = "jimbosfiles.com"; + + # User passwords, generated with 'mkpasswd -m sha-512' + jimboAccPass = "$6$gYpE.pG/zPXgin06$2kydjDfd0K62Dhf9P0PFvJhRNz6xIC/bHYaf/XYqyKcLyZNzPQpy8uy9tCRcSYlj1wwBhzVtTRyItwajOHCEj0"; + + # Cloudflare API key + flareApiKey = "ICUi1Zj0e_boCkeUJbXP9dJusv_qX_zhKWQGPcFe"; + + # Wireguard keys, generated with the wg command + wgServerPriv = "WHxxi53Yp8NRZhT+BQnvC62BckOeG1x2SOvkWlm0tGo="; + wgServerPub = "qnOT/lXOJMaQgDUdXpyfGZB2IEyUouRje2m/bCe9ux8="; + wgClientPriv = "MK9j0eYlgv+MZ9sSYO6C3lfqScpLPwcBqEckJ7o7tU4="; + wgClientPub = "OKUH/h6YSURI4vgeTZKQD15QsqaygdbTn1mAWzQp9S0="; + wgPixel9Pub = "dPCtjm67adMZCnyL1O2L+uUOk0RbjA9T/tht1r+qcE4="; + wgOraclePub = "ZCKlYHl7uKjDRsvIDH9hLgiMCpxKG8Jn70gjwmtdqRk="; + + # Icecast, plaintext + castAdminPass = "Gw9P8tW$omeq#reZA$b^jDy9VN"; + castSourcePass = "KkFDeM0SHIL*s6!d4x*a4b#bcq"; + + # Photoprism, plaintext + prismAdminPass = "gr3SkIqSBjDmypyxU!Zj9*CJ4X"; + + # Matrix secrets + matrixSecret = "bea7db528a95d8225c5fe6bf92614816fe9d31496b510dff78b1608cfb36f82a"; + discordBotID = "1277874425810915430"; + discordBotToken = "MTI3Nzg3NDQyNTgxMDkxNTQzMA.GvnfmN.wmNGJs7_lpkoz-XHkIEPhMh47MfsRZmbfFVOT8"; + + # Pixelfed secret, must be 32 characters long + pixelfedKey = ''APP_KEY=W9qein6055k9GdvwGbdJ6WxQ71Lr51cQ''; + + # Transmission credentials, plaintext + transmissionCredFile = '' + { + "rpc-username": "jimbo", + "rpc-password": "w%QbIEZhoi4jh*j*PKaZLkKk96" + } + ''; + + # Email cleartext passwords + noreplyPassword = "5mpEp3P^n6A%r3fznJA5"; + + # Email account hashes, generated with 'mkpasswd -m bcrypt' + noreplyMailHash = "$2b$05$7VibcFKXy5Ff9sUMh3KWBeSXkInXNeaADa71Md/swt5RCk5s7UnM2"; + jimboMailHash = "$2a$12$vHeFInRpfp.lpfR/k8ptNecs3ztKjkRTr9hae0DP8yEN1ZHKM2sxe"; + lunaMailHash = "$2y$10$ksBfmuuojCWnzFqpBDoE/OoGZyqfP.Luo2il7wWcqHemHgqhpQdi6"; + freecornMailHash = "$2b$05$7EF0TV39XzTYPIdWOoMnlegX8qLkcHxUytkvAt5sRDQE1oquAFTqm"; + tinyMailHash = "$2a$12$beq/ZO3hRz5mmGe9Cvvx8u/sNJcjVHlQQ5axv8IBmdJav60n7fuK6"; + + # IPs + jimIP1 = "99.247.177.43"; + jimIP2 = "184.144.76.19"; + lunaIP = "71.87.124.226"; + cornIP = "24.66.98.13"; + }; +}