sbc-deploys/modules/shared/default.nix

21 lines
451 B
Nix
Raw Normal View History

{ config, ... }:
{
services.openssh.settings.PasswordAuthentication = false;
sops = {
age.keyFile = "/home/asonix/.config/sops/age/keys.txt";
age.generateKey = true;
secrets.builderKey = {
format = "binary";
sopsFile = ../../secrets/builderKey.bin;
};
};
nix.extraOptions = ''
builders = ssh://builder@192.168.5.10?ssh-key=${config.sops.secrets.builderKey.path}
builders-use-substitutes = false
'';
}