fixed warning
This commit is contained in:
@@ -30,14 +30,12 @@ in
|
|||||||
echo -n "Created ${ageKeyFile}: "
|
echo -n "Created ${ageKeyFile}: "
|
||||||
echo $(show-age-key)
|
echo $(show-age-key)
|
||||||
'')
|
'')
|
||||||
(writeShellScriptBin "show-age-key" "exec ${lib.getExe' pkgs.age "age-keygen"} -y ${ageKeyFile}")
|
(writeShellScriptBin "show-age-key" "${lib.getExe' pkgs.age "age-keygen"} -y ${ageKeyFile}")
|
||||||
(writeShellScriptBin "edit-secrets" "exec ${sopsBin} --config ${sopsConfigPath} ${sopsSecretsPath}")
|
(writeShellScriptBin "edit-secrets" "${sopsBin} --config ${sopsConfigPath} ${sopsSecretsPath}")
|
||||||
(writeShellScriptBin "ls-secrets" "exec ${lib.getExe pkgs.eza} -alT --follow-symlinks ~/.config/sops-nix/secrets")
|
(writeShellScriptBin "ls-secrets" "${lib.getExe pkgs.eza} -alT --follow-symlinks ~/.config/sops-nix/secrets")
|
||||||
];
|
];
|
||||||
|
|
||||||
home.shellAliases = {
|
home.shellAliases.sops = "${sopsBin} --config ${sopsConfigPath}";
|
||||||
sops = "${sopsBin} --config ${sopsConfigPath}";
|
|
||||||
};
|
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
# This import makes the sops config attribute available below
|
# This import makes the sops config attribute available below
|
||||||
@@ -51,7 +49,7 @@ in
|
|||||||
# Option definitions for the sops home-manager module:
|
# Option definitions for the sops home-manager module:
|
||||||
# https://github.com/Mic92/sops-nix/blob/master/modules/home-manager/sops.nix
|
# https://github.com/Mic92/sops-nix/blob/master/modules/home-manager/sops.nix
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = "${sopsSecretsPath}";
|
defaultSopsFile = sopsSecretsPath;
|
||||||
defaultSopsFormat = "yaml";
|
defaultSopsFormat = "yaml";
|
||||||
age.sshKeyPaths = [ "${config.ssh.IdentityFile}" ];
|
age.sshKeyPaths = [ "${config.ssh.IdentityFile}" ];
|
||||||
# age.keyFile = "${ageKeyFile}";
|
# age.keyFile = "${ageKeyFile}";
|
||||||
|
|||||||
Reference in New Issue
Block a user