key: Compute full path to key file in Nix
This commit is contained in:
parent
e58dde1be0
commit
f674ddf173
4 changed files with 15 additions and 5 deletions
|
@ -212,7 +212,7 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
keyType = { lib, name, ... }: let
|
||||
keyType = { lib, name, config, ... }: let
|
||||
inherit (lib) types;
|
||||
in {
|
||||
options = {
|
||||
|
@ -255,7 +255,15 @@ let
|
|||
Destination directory on the host.
|
||||
'';
|
||||
default = "/run/keys";
|
||||
type = types.str;
|
||||
type = types.path;
|
||||
};
|
||||
path = lib.mkOption {
|
||||
description = ''
|
||||
Full path to the destination.
|
||||
'';
|
||||
default = "${config.destDir}/${config.name}";
|
||||
type = types.path;
|
||||
internal = true;
|
||||
};
|
||||
user = lib.mkOption {
|
||||
description = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue