Sshd, very simple sshd setup
This commit is contained in:
parent
863891641f
commit
5c4a4ef333
1 changed files with 11 additions and 0 deletions
11
nixosModules/services/ssh/service.nix
Normal file
11
nixosModules/services/ssh/service.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.sshd = {
|
||||||
|
enable = lib.mkEnableOption "Enables ssh daemon";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.sshd.enable {
|
||||||
|
services.openssh.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue