From 0aa1724bba6d5363cb1875563014cd6051efe9f1 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 9 Aug 2021 21:59:07 +0100 Subject: [PATCH] Remove SSH access to root user --- configuration.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index ed20497..b827ee4 100644 --- a/configuration.nix +++ b/configuration.nix @@ -88,13 +88,8 @@ shell = pkgs.fish; }; - # Set shell and SSH for root user - users.users.root = { - shell = pkgs.fish; - openssh.authorizedKeys.keys = ['' - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBvnfIsxGZWh+tU7OI60Tw3CyT+q3ghoETfRyWsXhioZ coolneng@panacea - '']; - }; + # Set shell for root user + users.users.root.shell = pkgs.fish; # Auto-upgrade the system system.autoUpgrade = {