Add basics openssh server to help develop in my laptop

This commit is contained in:
Florian RICHER 2024-02-17 11:54:36 +01:00
parent db416a64fd
commit 1442b17190
2 changed files with 13 additions and 0 deletions

View file

@ -13,6 +13,7 @@
../../modules/plasma.nix
../../modules/keymaps/fr.nix
../../modules/pipewire.nix
../../modules/openssh.nix
# Include the results of the hardware scan.
./hardware-configuration.nix

12
modules/openssh.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, pkgs, ... }:
services.openssh = {
enable = true;
passwordAuthentication = true;
listenAddresses = [
{
addr = "192.168.1.0/24";
port = "22";
}
]
};