From 7c880acb11773054a8d8da7d5e366c11758c485b Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Mon, 3 Jul 2023 23:16:31 +0300 Subject: [PATCH] enable ssh for local machines --- home/users/jan/default.nix | 6 ++++++ nixos/hosts/asus-gl553vd/default.nix | 2 ++ nixos/hosts/home/default.nix | 2 ++ 3 files changed, 10 insertions(+) diff --git a/home/users/jan/default.nix b/home/users/jan/default.nix index 44495e0..2869bc0 100644 --- a/home/users/jan/default.nix +++ b/home/users/jan/default.nix @@ -1,5 +1,9 @@ { config, pkgs, lib, inputs, extraHomeModule ? null, ... }: + +let + data = import ../../../data.nix; +in { nixpkgs.overlays = lib.mkAfter [ inputs.myneovim.overlays.default @@ -21,6 +25,8 @@ ]; shell = pkgs.zsh; passwordFile = config.age.secrets.users-jan-passfile.path; + + openssh.authorizedKeys.keys = data.publicKeys.users.jan; }; home-manager.users.jan = { lib, ... }: { diff --git a/nixos/hosts/asus-gl553vd/default.nix b/nixos/hosts/asus-gl553vd/default.nix index 2e35eeb..68912db 100644 --- a/nixos/hosts/asus-gl553vd/default.nix +++ b/nixos/hosts/asus-gl553vd/default.nix @@ -55,6 +55,8 @@ HandlePowerKey=ignore ''; + services.openssh.enable = true; + # Enable the Docker virtualisation.docker.enable = true; diff --git a/nixos/hosts/home/default.nix b/nixos/hosts/home/default.nix index 4ed2e4e..1e3dca6 100644 --- a/nixos/hosts/home/default.nix +++ b/nixos/hosts/home/default.nix @@ -43,6 +43,8 @@ local.nix.allowUnfreePackages = [ "cnijfilter2" ]; + services.openssh.enable = true; + services = { avahi = { enable = true;