From 1442b171901baa20766a0b96ad6d113cac980811 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sat, 17 Feb 2024 11:54:36 +0100 Subject: [PATCH] Add basics openssh server to help develop in my laptop --- hosts/perso-laptop/default.nix | 1 + modules/openssh.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/openssh.nix diff --git a/hosts/perso-laptop/default.nix b/hosts/perso-laptop/default.nix index 70c1913..d7c261c 100644 --- a/hosts/perso-laptop/default.nix +++ b/hosts/perso-laptop/default.nix @@ -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 diff --git a/modules/openssh.nix b/modules/openssh.nix new file mode 100644 index 0000000..02a86f3 --- /dev/null +++ b/modules/openssh.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +services.openssh = { + enable = true; + passwordAuthentication = true; + listenAddresses = [ + { + addr = "192.168.1.0/24"; + port = "22"; + } + ] +}; \ No newline at end of file