From 72e2acdef1d1186f55726cb1262475ad7ccbcb5f Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Sun, 27 Aug 2023 20:24:57 +0200 Subject: [PATCH] add roaming ssh pubkey --- common.nix | 6 +++++- home.nix | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/common.nix b/common.nix index 6f36d02..73e101e 100644 --- a/common.nix +++ b/common.nix @@ -83,7 +83,11 @@ # Enable the OpenSSH daemon. openssh = { enable = true; - settings.PermitRootLogin = "no"; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + }; }; }; diff --git a/home.nix b/home.nix index d8ab06a..9529fa1 100644 --- a/home.nix +++ b/home.nix @@ -9,7 +9,9 @@ description = "Vinzenz Schroeter"; extraGroups = ["networkmanager" "wheel"]; shell = pkgs.zsh; - # openssh.authorizedKeys.keys = [ "ssh-dss AAAAB3NzaC1kc3MAAACBAPIkGWVEt4..." ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINrY6tcgnoC/xbgL7vxSjddEY9MBxRXe9n2cAHt88/TT home roaming" + ]; }; # home manager @@ -37,7 +39,6 @@ insync # gnome-secrets tdesktop - lutris simple-scan wireguard-tools # steamlink @@ -66,6 +67,15 @@ jetbrains.pycharm-professional kdiff3 docker + + (lutris.override { + extraPkgs = pkgs: [ + # List package dependencies here + ]; + extraLibraries = pkgs: [ + # List library dependencies here + ]; + }) ]; file.".nanorc".text = ''