test multiple keys

This commit is contained in:
2025-08-23 11:03:20 -05:00
parent 12c5ef53a4
commit 8afcd43fac
2 changed files with 4 additions and 15 deletions

View File

@@ -29,19 +29,9 @@
users.users."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
isNormalUser = true;
createHome = false;
/*openssh.authorizedKeys.keyFiles = [
config.sops.secrets."remoteBuildClientKeys/laptop".path
];*/
/*openssh.authorizedKeys.keyFiles = (builtins.map
(y: config.sops.secrets.${y}.path)
(builtins.partition
(x: (builtins.match "^remoteBuildClientKeys/.+" x) != null)
(builtins.attrNames config.sops.secrets)
).right
);*/
};
sops.templates."remote-builder" = {
sops.templates."remote-builder" = lib.mkIf config.sysconfig.remoteBuildHost {
content = builtins.concatStringsSep ''''\n'' (builtins.map
(y: config.sops.placeholder.${y})
(builtins.partition
@@ -53,8 +43,6 @@
owner = "remote-builder";
};
#environment.etc."ssh/authorized_keys.d/remote-builder" = {};
hardware = {
graphics.enable = true;