enable ssh for local machines

This commit is contained in:
Dmitriy Pleshevskiy 2023-07-03 23:16:31 +03:00
parent 7721a89e13
commit 7c880acb11
Signed by: pleshevskiy
GPG Key ID: 79C4487B44403985
3 changed files with 10 additions and 0 deletions

View File

@ -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, ... }: {

View File

@ -55,6 +55,8 @@
HandlePowerKey=ignore
'';
services.openssh.enable = true;
# Enable the Docker
virtualisation.docker.enable = true;

View File

@ -43,6 +43,8 @@
local.nix.allowUnfreePackages = [ "cnijfilter2" ];
services.openssh.enable = true;
services = {
avahi = {
enable = true;