mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Nix/Builder] add option to specify builder private/public key
This commit is contained in:
parent
5877f589ba
commit
dbc57950e6
1 changed files with 13 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ let
|
|||
cfg = config.aviallon.nix;
|
||||
generalCfg = config.aviallon.general;
|
||||
desktopCfg = config.aviallon.desktop;
|
||||
buildUserPubKeyFile = ./id_builder.pub;
|
||||
buildUserKeyFile = ./id_builder;
|
||||
buildUserPubKeyFile = cfg.builder.publicKeyFile;
|
||||
buildUserKeyFile = cfg.builder.privateKeyFile;
|
||||
buildUserKeyFilePath = "/var/lib/nixos/aviallon.id_builder";
|
||||
|
||||
getSpeed = cores: threads: cores + (threads - cores) / 2;
|
||||
|
|
@ -46,6 +46,17 @@ in
|
|||
];
|
||||
|
||||
options.aviallon.nix.builder = {
|
||||
publicKeyFile = mkOption {
|
||||
type = types.path;
|
||||
example = "/path/to/id_builder.pub";
|
||||
description = "Path to the public key nix will use to connect to builder";
|
||||
};
|
||||
|
||||
privateKeyFile = mkOption {
|
||||
type = types.path;
|
||||
example = "/path/to/id_builder";
|
||||
description = "Path to the private key nix builder user will use";
|
||||
};
|
||||
|
||||
buildMachines = mkOption {
|
||||
type = types.attrsOf (types.submoduleWith {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue