From 9d6964d0f128bd4081ae9f630d01be5745300dbc Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Wed, 28 Aug 2024 00:18:45 +0200 Subject: [PATCH] Fix ssh persmissions (last take) --- hosts/nixos/common/users/pilot.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/nixos/common/users/pilot.nix b/hosts/nixos/common/users/pilot.nix index d3569d4..6debaa5 100644 --- a/hosts/nixos/common/users/pilot.nix +++ b/hosts/nixos/common/users/pilot.nix @@ -61,9 +61,10 @@ root = "/persist/state/${user.home}/ssh"; in [ - "Z ${root} 0755 ${user.name} ${user.group}" - "d ${root}/.ssh 0755 ${user.name} ${user.group}" - "z ${root}/.ssh/id_rsa 0700 ${user.name} ${user.group}" + "d ${root} 0755 ${user.name} ${user.group}" + "d ${root}/.ssh 0755 ${user.name} ${user.group}" + "z ${root}/.ssh/id_*.pub 0755 ${user.name} ${user.group}" + "z ${root}/.ssh/id_rsa 0700 ${user.name} ${user.group}" "z ${root}/.ssh/id_ed25519 0700 ${user.name} ${user.group}" ]; # }}}