mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 22:29:06 +01:00
23 lines
447 B
Nix
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;
|
|
};
|
|
};
|
|
}
|