mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02:00
Enable ssh
This commit is contained in:
parent
4de8009349
commit
614e4d66ca
7 changed files with 33 additions and 4 deletions
18
modules/system/ssh/default.nix
Normal file
18
modules/system/ssh/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ options, config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
#with lib.internal;
|
||||
let cfg = config.custom.system.ssh;
|
||||
in
|
||||
{
|
||||
options.custom.system.ssh = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable ssh.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.openssh.enable = true;
|
||||
services.openssh.settings.X11forwarding = true;
|
||||
services.openssh.settings.PermitRootLogin = "yes";
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue