From 4b77c215722e01002d11d1dc8522981dcd9eccf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 28 Aug 2025 17:44:19 +0200 Subject: [PATCH] Add comment about generate-ssh-key --- static.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static.nix b/static.nix index e8fbda9..0a7e18c 100644 --- a/static.nix +++ b/static.nix @@ -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 user ? false, # Should a user be created. If false, static-generic is used domains ? [], # e.g. [ "example.com" "acme.com" ] @@ -84,6 +84,8 @@ in { # SSH key generation for git deployments # 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 { description = "Generate SSH key for ${username}"; wantedBy = [ "multi-user.target" ];