nixos-config/backup/modules/users/ssh/default.nix
2021-11-12 07:23:46 +01:00

23 lines
345 B
Nix

{ 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;
};
};
}