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, ... }: { config, pkgs, lib, inputs, extraHomeModule ? null, ... }:
let
data = import ../../../data.nix;
in
{ {
nixpkgs.overlays = lib.mkAfter [ nixpkgs.overlays = lib.mkAfter [
inputs.myneovim.overlays.default inputs.myneovim.overlays.default
@ -21,6 +25,8 @@
]; ];
shell = pkgs.zsh; shell = pkgs.zsh;
passwordFile = config.age.secrets.users-jan-passfile.path; passwordFile = config.age.secrets.users-jan-passfile.path;
openssh.authorizedKeys.keys = data.publicKeys.users.jan;
}; };
home-manager.users.jan = { lib, ... }: { home-manager.users.jan = { lib, ... }: {

View file

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

View file

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