1
0
Fork 0
mirror of https://github.com/archtechx/nix.git synced 2025-12-12 03:24:02 +00:00

Add comment about generate-ssh-key

This commit is contained in:
Samuel Štancl 2025-08-28 17:44:19 +02:00
parent 5495a4e309
commit 4b77c21572

View file

@ -1,5 +1,5 @@
{ {
name, # Name of the site, /srv/{name} will be based on this as well as the username if user = true name, # Name of the site, /srv/{name} will be based on this as well as the username if user=true
root, # The directory within /srv/{name} that should be served by nginx root, # The directory within /srv/{name} that should be served by nginx
user ? false, # Should a user be created. If false, static-generic is used user ? false, # Should a user be created. If false, static-generic is used
domains ? [], # e.g. [ "example.com" "acme.com" ] domains ? [], # e.g. [ "example.com" "acme.com" ]
@ -84,6 +84,8 @@ in {
# SSH key generation for git deployments # SSH key generation for git deployments
# Note: keep in sync with laravel.nix # Note: keep in sync with laravel.nix
# Unlike laravel.nix, the key here includes username, not the site name since static-generic
# can be used for multiple sites
systemd.services."generate-ssh-key-${username}" = lib.mkIf generateSshKey { systemd.services."generate-ssh-key-${username}" = lib.mkIf generateSshKey {
description = "Generate SSH key for ${username}"; description = "Generate SSH key for ${username}";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];