21 lines
223 B
Nix
21 lines
223 B
Nix
![]() |
{
|
||
|
lib,
|
||
|
config,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.modules.ssh;
|
||
|
in
|
||
|
{
|
||
|
options.modules.ssh = {
|
||
|
enable = mkEnableOption "ssh";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.openssh.enable = true;
|
||
|
};
|
||
|
}
|