[ssh] Move to actual module
This commit is contained in:
parent
59995f94c3
commit
d40d862c04
10 changed files with 100 additions and 78 deletions
13
nixos/modules/programs/ssh/default.nix
Normal file
13
nixos/modules/programs/ssh/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.programs.ssh;
|
||||
in {
|
||||
options.sisyphus.programs.ssh.enable = lib.mkEnableOption "SSH";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.ssh = {
|
||||
enableAskPassword = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue