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