From 75425faa20f606fc1141ea9fa48858e1d90ae869 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Tue, 27 Aug 2024 23:35:21 +0200 Subject: [PATCH] Fix ssh permissions (take 4) --- hosts/nixos/common/users/pilot.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hosts/nixos/common/users/pilot.nix b/hosts/nixos/common/users/pilot.nix index 6d8dcd6..a863728 100644 --- a/hosts/nixos/common/users/pilot.nix +++ b/hosts/nixos/common/users/pilot.nix @@ -58,12 +58,13 @@ systemd.tmpfiles.rules = let user = config.users.users.pilot; - ssh = "/persist/state/${user.home}/ssh/.ssh"; + root = "/persist/state/${user.home}/ssh"; in [ - "d ${ssh} 0755 ${user.name} ${user.group}" - "e ${ssh}/id_rsa 0700 ${user.name} ${user.group}" - "e ${ssh}/id_ed25519 0700 ${user.name} ${user.group}" + "d ${root} 0755 ${user.name} ${user.group}" + "d ${root}/.ssh 0755 ${user.name} ${user.group}" + "e ${root}/.ssh/id_rsa 0700 ${user.name} ${user.group}" + "e ${root}/.ssh/id_ed25519 0700 ${user.name} ${user.group}" ]; # }}} }