add ese-deploy user

This commit is contained in:
Lyn Fugmann 2024-10-06 23:09:22 +02:00
parent 7c86415c50
commit ea8efc298d
Signed by: fugi
GPG key ID: 4472A20091BFA792

View file

@ -1,4 +1,4 @@
{ config, ... }:
{ config, pkgs, ... }:
let
domain = "ese.${config.networking.domain}";
webRoot = "/srv/web/ese";
@ -23,4 +23,12 @@ in
};
};
};
users.users."ese-deploy" = {
isNormalUser = true;
openssh.authorizedKeys.keys = [
''command="${pkgs.rrsync}/bin/rrsync ${webRoot}",restrict ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEWGdTdobZN2oSLsTQmHOahdc9vqyuwUBS0PSk5IQhGV''
];
};
}