Skip to content
Snippets Groups Projects
Commit d846bc6c authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Configure our binary cache on deployment-update-capable systems

parent dd9d422b
No related branches found
No related tags found
3 merge requests!140Merge staging into production,!122Merge develop into staging,!115Continuous deployment for the grid systems
......@@ -30,6 +30,18 @@ in {
};
config = {
# Configure the system to use our binary cache so that deployment updates
# only require downloading pre-built software, not building it ourselves.
nix = {
binaryCachePublicKeys = [
"saxtons.private.storage:MplOcEH8G/6mRlhlKkbA8GdeFR3dhCFsSszrspE/ZwY="
];
binaryCaches = [
"http://saxtons.private.storage"
];
};
# Configure the deployment user.
users.users.deployment = {
# Without some shell no login is possible at all, even to execute our
# restricted command.
......@@ -39,6 +51,7 @@ in {
createHome = true;
home = "/home/deployment";
# Authorize the supplied key to run the deployment update command.
openssh.authorizedKeys.keys = [
(restrictedKey {
inherit (cfg) authorizedKey gridName;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment