fixed sops
This commit is contained in:
@@ -35,7 +35,9 @@ in
|
||||
(writeShellScriptBin "ls-secrets" "exec ${lib.getExe pkgs.eza} -alT --follow-symlinks ~/.config/sops-nix/secrets")
|
||||
];
|
||||
|
||||
programs.zsh.shellAliases.sops = "exec ${sopsBin} --config ${sopsConfigPath}";
|
||||
home.shellAliases = {
|
||||
sops = "${sopsBin} --config ${sopsConfigPath}";
|
||||
};
|
||||
|
||||
imports = [
|
||||
# This import makes the sops config attribute available below
|
||||
@@ -51,16 +53,14 @@ in
|
||||
sops = {
|
||||
defaultSopsFile = "${sopsSecretsPath}";
|
||||
defaultSopsFormat = "yaml";
|
||||
|
||||
# Not sure any of these are necessary
|
||||
# age.sshKeyPaths = [ "${config.sshIdentityFile}" ];
|
||||
age.sshKeyPaths = [ "${config.ssh.IdentityFile}" ];
|
||||
# age.keyFile = "${ageKeyFile}";
|
||||
# age.generateKey = true;
|
||||
|
||||
# secrets."api/gmail_client_secret" = {
|
||||
# path = "${config.xdg.configHome}/resticprofile/dendrite.txt";
|
||||
# };
|
||||
|
||||
secrets."api/gmail_client_secret" = {
|
||||
path = "${config.xdg.configHome}/resticprofile/dendrite.txt";
|
||||
};
|
||||
|
||||
templates."gmail_creds" = {
|
||||
path = "${config.xdg.configHome}/sops-nix/gmail_api_credentials.json";
|
||||
content = ''
|
||||
|
||||
Reference in New Issue
Block a user