mirror of
https://git.oat.zone/dark-firepit/dotfiles
synced 2024-05-13 20:46:08 +02:00
21 lines
400 B
Nix
21 lines
400 B
Nix
|
{ options, config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
#with lib.my;
|
||
|
let
|
||
|
cfg = config.modules.services.ssh;
|
||
|
in {
|
||
|
options.modules.services.ssh = {
|
||
|
enable = mkOption {
|
||
|
type = types.bool;
|
||
|
default = false;
|
||
|
description = "Provide system SSH support though OpenSSH.";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
services.openssh.enable = true;
|
||
|
# services.sshd.enable = true;
|
||
|
};
|
||
|
}
|