From 5a7fb855a5c42e648e0ac9ae3b3f9b1fa3dae877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Tue, 24 Feb 2026 12:08:58 +0100 Subject: [PATCH] Added necessary information --- deploy.conf | 2 ++ deploy.sh | 4 +++- templates/nix-config/configuration.nix | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/deploy.conf b/deploy.conf index 01f2bc7..ce56953 100644 --- a/deploy.conf +++ b/deploy.conf @@ -6,6 +6,8 @@ export LIVE_TARGET_IP="192.168.1.10" export LIVE_TARGET_PASSWD="example" #SERVER SETTINGS +export LANGUAGE="FR" +export LOCALE="fr_FR" export TIMEZONE="Europe/Paris" export SERVER_OWNER_NAME="yourName" export SERVER_USER_EMAIL="user@your-domain.com" diff --git a/deploy.sh b/deploy.sh index 1c9632d..ff2f43f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -8,7 +8,7 @@ export GUM_SPIN_SHOW_ERROR=true export GUM_SPIN_TITLE_BOLD=true NECESSARY_VARIABLES_LIST=( LIVE_TARGET_IP LIVE_TARGET_PASSWD \ -SERVER_OWNER_NAME SERVER_USER_EMAIL SERVER_ADMIN_EMAIL AUTHORIZED_SSH_PUBLIC_KEY \ +TIMEZONE LANGUAGE LOCALE SERVER_OWNER_NAME SERVER_USER_EMAIL SERVER_ADMIN_EMAIL AUTHORIZED_SSH_PUBLIC_KEY \ DOMAIN_NAME CLOUDFLARE_DNS_API_TOKEN \ SMTP_SERVER_USERNAME SMTP_SERVER_PASSWORD SMTP_SERVER_HOST SMTP_SERVER_PORT \ NETWORK_SUBNET NETWORK_ROUTER_IP HOME_SERVER_IP) @@ -66,6 +66,8 @@ necessary_information() { echo -e "\n\n➡️ Now provide some information about the server you are deploying\n" # SERVER SETTINGS user_input "TIMEZONE" " Please provide the wanted timezone :" "For example : Europe/Paris, Europe/Berlin" "" "" + user_input "LANGUAGE" " Please provide the wanted language :" "For example : FR (for french), EN (for english), DE, IT, etc" "" "" + user_input "LOCALE" " Please provide your locale :" "For example : fr_FR for France, de_DE for Germany, en_US for USA or en_GB for Great-Britain, etc" "" "" user_input "SERVER_OWNER_NAME" " Please provide the name of the owner of this server :" "For example : Steve" "" "" user_input "SERVER_USER_EMAIL" " Please provide a valid user email address (to stay informed about your server's health) :" "For example : myemail@gmail.com" "${EMAIL_REGEX}" "Invalid email address format." user_input "SERVER_ADMIN_EMAIL" " Please provide a valid admin email address (will be used for ACME, and system failures notifications) :" "For example : myemail@gmail.com" "${EMAIL_REGEX}" "Invalid email address format." diff --git a/templates/nix-config/configuration.nix b/templates/nix-config/configuration.nix index 0977db7..b7493db 100644 --- a/templates/nix-config/configuration.nix +++ b/templates/nix-config/configuration.nix @@ -13,7 +13,7 @@ sops.defaultSopsFile = ./secrets/secrets.yaml; sops.age.sshKeyPaths = [ "/home/numbus-admin/.ssh/id_ed25519" ]; sops.age.keyFile = "/var/lib/sops-nix/key.txt"; - sops.secrets."ssh_public_keys" = { owner = "numbus-admin"; path = "/home/numbus-admin/.ssh/authorized_keys"; mode = "0600"; }; + sops.secrets."authorizedSshPublicKeys" = { owner = "numbus-admin"; path = "/home/numbus-admin/.ssh/authorized_keys"; mode = "0600"; }; sops.secrets."smtpPassword" = { owner = "numbus-admin"; mode = "0600"; }; sops.secrets."cloudflareDnsApiToken" = { owner = "numbus-admin"; mode = "0600"; };