Skip to content

Commit 3e5b490

Browse files
committed
fix(sops): add authorized_keys template to android common.nix
1 parent b3024bc commit 3e5b490

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

machines/aarch64/android/common.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,16 @@
3838
'';
3939

4040
programs.udocker.enable = true;
41+
42+
sops.secrets."ssh_public_keys/smartphone" = { };
43+
sops.secrets."ssh_public_keys/tablet" = { };
44+
45+
sops.templates."authorized_keys" = {
46+
content = ''
47+
${config.sops.placeholder."ssh_public_keys/smartphone"}
48+
${config.sops.placeholder."ssh_public_keys/tablet"}
49+
'';
50+
path = "${config.home.homeDirectory}/.ssh/authorized_keys";
51+
mode = "0600";
52+
};
4153
}

0 commit comments

Comments
 (0)