try
This commit is contained in:
@@ -32,15 +32,28 @@
|
||||
/*openssh.authorizedKeys.keyFiles = [
|
||||
config.sops.secrets."remoteBuildClientKeys/laptop".path
|
||||
];*/
|
||||
openssh.authorizedKeys.keyFiles = (builtins.map
|
||||
/*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" = {
|
||||
content = builtins.concatStringsSep "\n" (builtins.map
|
||||
(y: config.sops.placeholder.${y})
|
||||
(builtins.partition
|
||||
(x: (builtins.match "^remoteBuildClientKeys/.+" x) != null)
|
||||
(builtins.attrNames config.sops.secrets)
|
||||
).right
|
||||
);
|
||||
path = "/etc/ssh/authorized_keys.d/remote-builder";
|
||||
};
|
||||
|
||||
#environment.etc."ssh/authorized_keys.d/remote-builder" = {};
|
||||
|
||||
hardware = {
|
||||
|
||||
graphics.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user