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