fixed warning

This commit is contained in:
John Lancaster
2026-03-08 15:44:26 -05:00
parent fe2dc5b09b
commit 902f6ec023

View File

@@ -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}";