nixos-config/modules/users/ssh/default.nix

24 lines
345 B
Nix
Raw Normal View History

2021-10-05 23:45:02 +02:00
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.erwin.ssh;
in {
options.erwin.ssh = {
enable = mkOption {
description = "Enable ssh";
type = types.bool;
default = false;
};
};
config = mkIf (cfg.enable) {
home.packages = with pkgs; [
];
programs.ssh = {
enable = true;
};
};
}