24 lines
345 B
Nix
24 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;
|
||
|
};
|
||
|
};
|
||
|
}
|