Files
nix-config/modules/nix/sshServe.nix
2026-03-07 11:38:50 +01:00

26 lines
401 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.custom.nix.sshServe;
in
{
options.custom.nix.sshServe = {
enable = mkEnableOption "Enable serving the nix cache over ssh";
};
config = mkIf cfg.enable {
nix.sshServe = {
enable = true;
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFeP6qtVqE/gu72ZUZE8cdRi3INiUW9NqDR7SjXIzTw2"
];
};
};
}