Add basics openssh server to help develop in my laptop
This commit is contained in:
parent
db416a64fd
commit
1442b17190
2 changed files with 13 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
../../modules/plasma.nix
|
../../modules/plasma.nix
|
||||||
../../modules/keymaps/fr.nix
|
../../modules/keymaps/fr.nix
|
||||||
../../modules/pipewire.nix
|
../../modules/pipewire.nix
|
||||||
|
../../modules/openssh.nix
|
||||||
|
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
12
modules/openssh.nix
Normal file
12
modules/openssh.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
passwordAuthentication = true;
|
||||||
|
listenAddresses = [
|
||||||
|
{
|
||||||
|
addr = "192.168.1.0/24";
|
||||||
|
port = "22";
|
||||||
|
}
|
||||||
|
]
|
||||||
|
};
|
Loading…
Reference in a new issue