From 902f6ec02372daf64b085d6509f8f08f65083fa1 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 8 Mar 2026 15:44:26 -0500 Subject: [PATCH] fixed warning --- modules/home-manager/programs/sops.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/modules/home-manager/programs/sops.nix b/modules/home-manager/programs/sops.nix index aa4248b..3b8ed41 100644 --- a/modules/home-manager/programs/sops.nix +++ b/modules/home-manager/programs/sops.nix @@ -30,14 +30,12 @@ in echo -n "Created ${ageKeyFile}: " echo $(show-age-key) '') - (writeShellScriptBin "show-age-key" "exec ${lib.getExe' pkgs.age "age-keygen"} -y ${ageKeyFile}") - (writeShellScriptBin "edit-secrets" "exec ${sopsBin} --config ${sopsConfigPath} ${sopsSecretsPath}") - (writeShellScriptBin "ls-secrets" "exec ${lib.getExe pkgs.eza} -alT --follow-symlinks ~/.config/sops-nix/secrets") + (writeShellScriptBin "show-age-key" "${lib.getExe' pkgs.age "age-keygen"} -y ${ageKeyFile}") + (writeShellScriptBin "edit-secrets" "${sopsBin} --config ${sopsConfigPath} ${sopsSecretsPath}") + (writeShellScriptBin "ls-secrets" "${lib.getExe pkgs.eza} -alT --follow-symlinks ~/.config/sops-nix/secrets") ]; - home.shellAliases = { - sops = "${sopsBin} --config ${sopsConfigPath}"; - }; + home.shellAliases.sops = "${sopsBin} --config ${sopsConfigPath}"; imports = [ # This import makes the sops config attribute available below @@ -51,7 +49,7 @@ in # Option definitions for the sops home-manager module: # https://github.com/Mic92/sops-nix/blob/master/modules/home-manager/sops.nix sops = { - defaultSopsFile = "${sopsSecretsPath}"; + defaultSopsFile = sopsSecretsPath; defaultSopsFormat = "yaml"; age.sshKeyPaths = [ "${config.ssh.IdentityFile}" ]; # age.keyFile = "${ageKeyFile}";