Skip to content

Commit

Permalink
add cachix secrets to home manager
Browse files Browse the repository at this point in the history
  • Loading branch information
redxtech committed Apr 1, 2024
1 parent 4169fe7 commit eb5b9be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions home/gabe/features/cli/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -415,5 +415,7 @@ in {
xdg.configFile."fish/env.secrets.fish".text = ''
set --export YOUTUBE_API_KEY "$(${pkgs.coreutils}/bin/cat ${config.sops.secrets.youtube.path})"
set --export BW_SESSION "$(${pkgs.coreutils}/bin/cat ${config.sops.secrets.bw.path})"
set --export CACHIX_AUTH_TOKEN "$(${pkgs.coreutils}/bin/cat ${config.sops.secrets.cachix.path})"
set --export CACHIX_ACTIVATE_TOKEN "$(${pkgs.coreutils}/bin/cat ${config.sops.secrets.cachix-activate.path})"
'';
}
17 changes: 9 additions & 8 deletions home/gabe/global/sops.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
age.sshKeyPaths = lib.mkDefault [ "/home/gabe/.ssh/id_ed25519" ];

secrets = {
bw = { path = "${config.xdg.configHome}/secrets/bw.txt"; };
youtube = { path = "${config.xdg.configHome}/secrets/youtube.txt"; };
openweathermap = {
path = "${config.xdg.configHome}/secrets/openweathermap.txt";
};
"adguardian.fish" = {
path = "${config.xdg.configHome}/secrets/adguardian.fish";
};
bw.path = "${config.xdg.configHome}/secrets/bw.txt";
cachix.path = "${config.xdg.configHome}/secrets/cachix.txt";
cachix-activate.path =
"${config.xdg.configHome}/secrets/cachix-activate.txt";
youtube.path = "${config.xdg.configHome}/secrets/youtube.txt";
openweathermap.path =
"${config.xdg.configHome}/secrets/openweathermap.txt";
"adguardian.fish".path =
"${config.xdg.configHome}/secrets/adguardian.fish";
};
};
}
6 changes: 4 additions & 2 deletions home/gabe/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
bw: ENC[AES256_GCM,data:F+OHjhYVz363CC5Jo0gwrik1UEbfETLMRYW7Ue02W/ZeHscyExrdNwuCQScBRS9BIdMqCl4XKcoxAPKLI+9u3ef9Fwsb7+KMQ0U0bC7XpdFU3bD3cUEytQ==,iv:j153ZS90fvxOZW+nCt/dP04Hyh6Me4SAAZqek96Sxd4=,tag:LGq3LmTx2a1u8np2x2DnRQ==,type:str]
cachix: ENC[AES256_GCM,data:aIC9YKUgiewgL9RBp8SjJ1UbvSbu9yR6eqr8D6rS2vTUIayX7eM44pKuHQp+BSJol0PzD80xzRTCo9fw7ohvn1K2j8unwOsnxkUmHagAmMUSi7yCxTf0db1BmT6FQu2DsddUknmTQ9ePAjKqsELZWzLScsLSTPBsD5v062xiUeG7RsiLFUK5vfPHYN6oJ9xIVGBYEVg=,iv:nGDNglal8grUIV6VR7Uqk9TG57oI8XHuF5cZzuoSPRc=,tag:5CbmbNyIvPNJcb9sgl5xHA==,type:str]
cachix-activate: ENC[AES256_GCM,data:KofCeNaqHzE7pHnnONEY/zKPeZYOwYqztEO9K5f4ugnuyA0WQmSd9buHfKg8/5IC9F0t+42qkFNGo4zZz5gD87k755Gnyc4xV1Htp1FiZ1BKCIq21fQRWCLZq7AT35MAq3Hql5eiHjty+kH5uq+USpz5Pq57gOjz6zK3fp3GauZ247fsPb4v7vOpr0vnE+z1b5+zY+2CdlnU,iv:rk+6HH4PqumkieAsbnRUvN0/Lm6DxkIV8dyELKYF15U=,tag:i7rYfYzRwaiLWzHBkbhq9g==,type:str]
openweathermap: ENC[AES256_GCM,data:k7Q2SWE11GDOtUCLaBlpv6Mt9LDrBj+2XDQdiYMDTbw=,iv:kGWahajATUkzMgv8v9AtaBZlEH3+YegXpkmZSlDjuEg=,tag:C2LBv1eQueKBE/4q2KRrNQ==,type:str]
spotify: ENC[AES256_GCM,data:59wzvktIj+fLIm44O2G5Iw==,iv:rDWX9ho4UV7lD7KZV2xZ9VIoG4/qos1uDrej5sPkdd0=,tag:ywRRE1VKIi5keovpZIvjFQ==,type:str]
youtube: ENC[AES256_GCM,data:lx4x8ZQB68A6X9P39I/XWcUl4q7tT+n2AoTGKF18Dz5es9KRQdkD,iv:vCV3ewwkDU2MnvOXzfeJ+BSQvkiu18NSruX8CQuPFRE=,tag:dsj1zaEtCORMZLJV6Ktalg==,type:str]
Expand Down Expand Up @@ -27,8 +29,8 @@ sops:
SlF3dGJHSGpPdG9IVXZzY3dJN28xOGcK0xYMC5dpGmj+qakNZaLpYgqeCWc8Zzc9
ShA2ox2c6yMyYiaw+K2adjIEzSLqpwmCKma6EfauABsNfGO0wr0KkA==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2024-03-09T11:15:31Z"
mac: ENC[AES256_GCM,data:tq6RVt1/oI4gFD6KB0HVM2TOjnVUcdApT68yHX4ZsVFTRvCjAy3IaVS32tJRMetTZ1wqt3ghoJq4NtWbkNyw6wiAabJDtpiiTMviDZaUSczofMCZVnXRp39SvExqval5OMKhhNAaaWQjJK8+s/s0Z5T3Xpw86KkypeFAWRyZA4U=,iv:6diQ2JJHukLQO8OkUHBD1v4bsQkuqrgfpL42C4bRmMs=,tag:kEEnH+5DvFMHORCBO7Ni5g==,type:str]
lastmodified: "2024-04-01T10:22:38Z"
mac: ENC[AES256_GCM,data:cdM1R4WLNhp3R2d1IdS1j/VTyhWvvjyRjbv8GDpe60rdqSNxySlDsBZgYcwIYfSsPxBNM7IGIKo1dyVFNL/cdVnUWY8nwtEACyS6JQiMBLXP8yYr+v6VAgEPSn/iMiyCFvSs+xLvyZq6ZDYLtDqkPVFmv4MtFxGKDNispvpyJWg=,iv:wRVEKEFVSkN6ivmK3AdPjanEyGmVBcgdXcK973Sz6JM=,tag:qEI3ZQ5FOsd0iZZ41iw9bw==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.8.1

0 comments on commit eb5b9be

Please sign in to comment.