!XLCFfvFhUkYwOMLbVx:nixos.org

agenix

255 Members
age-encrypted secrets for NixOS https://github.com/ryantm/agenix/81 Servers

Load older messages


SenderMessageTime
7 Jun 2024
@hexa:lossy.networkhexa * agenix is wrapping age21:00:47
@hexa:lossy.networkhexaand you'll want agenix21:00:51
@conr:mozilla.orgconrin what dir?21:01:12
@conr:mozilla.orgconr the /etc/secrets are on the nixos system right? no my mac? 21:01:53
@hexa:lossy.networkhexaagenix will ship the encrypted secrets into your targets nix store21:03:35
@hexa:lossy.networkhexa * agenix will ship the encrypted secrets into your target's nix store21:03:39
@conr:mozilla.orgconr
In reply to @hexa:lossy.network
agenix will ship the encrypted secrets into your target's nix store
but this command agenix -e secret1.age
21:05:08
@conr:mozilla.orgconrdoes nothing.21:05:12
@conr:mozilla.orgconr agenix: command not found 21:05:30
@hexa:lossy.networkhexawell, you don't have agenix installed21:05:47
@conr:mozilla.orgconr do i need to add it to my configuration.nix? 21:06:10
@hexa:lossy.networkhexapossibly21:06:24
@hexa:lossy.networkhexahttps://github.com/ryantm/agenix?tab=readme-ov-file#installation21:06:36
@hexa:lossy.networkhexathere is a few ways to get it installed21:06:40
@conr:mozilla.orgconroh crap, the md document didn't expand flakes section, so sorry.21:07:28
@conr:mozilla.orgconr should the creation of /etc/secrets/secrets.nix should be done with root correct? 21:16:18
@conr:mozilla.orgconr
Inputs:
├───agenix: github:ryantm/agenix/c2fc0762bbe8feb06a2e59a364fa81b3a57671c9
│   ├───darwin: github:lnl7/nix-darwin/4b9b83d5a92e8c1fbfd8eb27eda375908c11ec4d
│   │   └───nixpkgs follows input 'agenix/nixpkgs'
│   ├───home-manager: github:nix-community/home-manager/3bfaacf46133c037bb356193bd2f1765d9dc82c1
│   │   └───nixpkgs follows input 'agenix/nixpkgs'
│   ├───nixpkgs: github:NixOS/nixpkgs/54aac082a4d9bb5bbc5c4e899603abfb76a3f6d6
│   └───systems: github:nix-systems/default/da67096a3b9bf56a91d16901293e51ba5b49a27e
21:27:39
@conr:mozilla.orgconr i have it installed via flake but its still not recognizing the agenix command. 21:28:03
@conr:mozilla.orgconr ryantm: i'm so confused on what to do on this part agenix -e secret1.age of the guide. 22:05:01
@conr:mozilla.orgconri finally got it.23:04:47
@conr:mozilla.orgconrCan i create a secret that a json object and not just 1 string?23:21:09
@conr:mozilla.orgconrare there any examples of this?23:22:01
8 Jun 2024
@ryantm:matrix.orgryantmSecrets are files. Not strings. You can save json to a file. It sounds like maybe you're trying to use secrets at eval time which is not how this works.00:27:57
@conr:mozilla.orgconr
In reply to @ryantm:matrix.org
Secrets are files. Not strings. You can save json to a file. It sounds like maybe you're trying to use secrets at eval time which is not how this works.
When does it evaluate them, on build?
00:56:07
@ryantm:matrix.orgryantmAt evaluation time you can access the file path they will be decrypted to upon activation.01:06:48
@conr:mozilla.orgconr
In reply to @ryantm:matrix.org
At evaluation time you can access the file path they will be decrypted to upon activation.
if i wanted to store multiple secrets in one file and encrypt to import to the configuration.nix, would i need to save it as a .nix file before encrypting it?
19:47:46
@r522:matrix.org522
In reply to @conr:mozilla.org
if i wanted to store multiple secrets in one file and encrypt to import to the configuration.nix, would i need to save it as a .nix file before encrypting it?
don't store multiple secrets in one file
19:59:00
@r522:matrix.org522make a file per secret19:59:05
@r522:matrix.org522 it's decrypted after your system is built
as in, when it boots it's decrypted, not when it's built
19:59:32
@r522:matrix.org522so .nix doesn't exist at that point19:59:39

Show newer messages


Back to Room ListRoom Version: 6