commit | adab78f0304079499fa206d55471790f4accd769 | [log] [tgz] |
---|---|---|
author | Skyler Grey <minion@clicks.codes> | Sun Nov 26 21:59:40 2023 +0000 |
committer | Skyler Grey <minion@clicks.codes> | Tue Nov 28 22:19:37 2023 +0000 |
tree | 794aa61dedeb83d1355f95d7e2addc867fc69d79 | |
parent | 578f6b56bfb81079045684b0bffb7e6e9204df10 [diff] |
Add hostnames for a1d1 and a1d2 We already had a networking.nix, but did not include it in either our a1d1 or a1d2 configs. This commit includes networking.nix for both systems Change-Id: If7b02bef754381bb27f2295ff83d3936f5aa3a2d Reviewed-on: https://git.clicks.codes/c/Clicks/NixFiles/+/52 Tested-by: Skyler Grey <minion@clicks.codes> Reviewed-by: Samuel Shuert <coded@clicks.codes>
To deploy these files to our server we use deploy-rs. If you've got a flakes-enabled nix installed on your system you can run
nix run github:serokell/deploy-rs
You can also install deploy-rs to your profile, at which point you'll be able to run
deploy
Secrets are stored in SOPS and deployed using scalpel.
If you have a service which needs to store secrets in its config file, please set systemd reloadTriggers and restartTriggers to automatically reload/restart the service whenever the configuration changes.
It's notable that changing the secrets will not trigger a reload/restart of the service. If you want to update the secrets without updating the rest of the configuration you currently need to manually restart the service. It's possible that this could be solved by using systemd paths to watch the files (see https://superuser.com/questions/1171751/restart-systemd-service-automatically-whenever-a-directory-changes-any-file-ins) but this is not a priority