From 3e350bc4255c1d579c1382c13722091b36325121 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Tue, 23 Dec 2025 14:29:58 +0100 Subject: [PATCH] Configure ssh keys --- hosts/nixos-desktop/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/hosts/nixos-desktop/default.nix b/hosts/nixos-desktop/default.nix index c662096..2ba01bd 100644 --- a/hosts/nixos-desktop/default.nix +++ b/hosts/nixos-desktop/default.nix @@ -64,10 +64,13 @@ } ]; }; - users.users.root.openssh.authorizedKeys.keyFiles = [ - ../../ssh_keys/phfroidmont-laptop.pub - ../../ssh_keys/phfroidmont-stellaris.pub - ]; + + users.users.${config.user.name} = { + openssh.authorizedKeys.keyFiles = [ + ../../ssh_keys/phfroidmont-desktop.pub + ../../ssh_keys/phfroidmont-stellaris.pub + ]; + }; # Allow to externally control MPD networking.firewall.allowedTCPPorts = [ 6600 ];