nixos-config/modules/home/programs/ssh.nix
SebastianStork 70b8d89311
Revert "home-manager: Use minimal module set and import everything else manually"
This reverts commit 0c25e7fd34.

The slightly decreased evaluation time isn't worth the added maintenance burden
2026-02-19 18:37:58 +01:00

23 lines
447 B
Nix

{
config,
osConfig,
self,
lib,
...
}:
{
options.custom.programs.ssh = {
enable = lib.mkEnableOption "";
publicKeyPath = lib.mkOption {
type = lib.types.path;
default = "${self}/users/${config.home.username}/@${osConfig.networking.hostName}/keys/ssh.pub";
};
};
config = lib.mkIf config.custom.programs.ssh.enable {
programs.ssh = {
enable = true;
enableDefaultConfig = false;
};
};
}