From 822763abe48b70741425b5b67ca960c6975353b0 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 21 Feb 2025 20:25:39 +0100 Subject: [PATCH] hosts/_iso: Allow clerie to log in to root directly with SSH keys --- hosts/_iso/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/_iso/configuration.nix b/hosts/_iso/configuration.nix index fadf700..d971c32 100644 --- a/hosts/_iso/configuration.nix +++ b/hosts/_iso/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, modulesPath, ... }: +{ pkgs, lib, modulesPath, config, ... }: { imports = [ @@ -18,6 +18,9 @@ nixfiles-auto-install ]; + # Allow user clerie to log in as root directly with ssh keys + users.users.root.openssh.authorizedKeys.keys = config.users.users.clerie.openssh.authorizedKeys.keys; + services.openssh.settings = { PermitRootLogin = lib.mkForce "yes"; };