mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
Much change, kinda broke my git history
This commit is contained in:
parent
077322deaf
commit
4b0d80d349
13 changed files with 108 additions and 19 deletions
21
modules/ssh-server/default.nix
Normal file
21
modules/ssh-server/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ pkgs, config, lib, inputs, ... }:
|
||||
let
|
||||
cfg = config.luj.ssh-server;
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
options.luj.ssh-server = {
|
||||
enable = mkEnableOption "Accept ssh connections";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = [ 45 ];
|
||||
passwordAuthentication = false;
|
||||
permitRootLogin = "no";
|
||||
openFirewall = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue