Skip to content

A stripped-down reference version of EmergentMind's private Nix-Secrets repo.

License

Notifications You must be signed in to change notification settings

EmergentMind/nix-secrets-reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


EmergenMinds Nix-Secrets Reference Repository

This is a stripped-down, reference version of EmergenMinds's private Nix-Secrets repo intended to help you set up your own. The actual, private repository is pulled into EmergentMind's public Nix-Config to automate provisioning of private information, passwords, and keys across hosts.

For details on how this is accomplished, how to approach different scenarios, and troubleshooting for some common hurdles, please see the article and accompanying YouTube video NixOS Secrets Management available on my website. Note that some of the hierarchy and usage has evolved over time and while I attempt to update the article to match, I will inevitably miss something. Please feel free to let me know if you notice a discrepancy and I will make time to revise.

Contents:

The main contents of this repo include:

  • secrets.yaml - would normally encrypted/decrypted using sops-nix. The secrets stored in this file include private ssh keys, user passwords, service credentials, and other keys or passwords. IMPORTANT: The file in this example repo is unencrypted and contains dummy information intended to show the basic hierarchy used in my actual encrypted file.
  • .sops.yaml - instructs sops-nix which age keys to use when encrypting secrets.yaml.
  • flake.nix - listed last because it is optional and contains information such as email addresses and personal domains that are private but are not sensitive enough to bother putting in secrets.yaml

How to use:

As stated above, this is just for reference. For information on how to setup something similar, please see the article linked in the second paragraph, above.

Requirements:

Depending on the activity required, some of the following packages will be required but this is all covered in the article. Packages like age, sops, and ssh-to-age aren't necessarily installed on the host so you may need to add them to a temporary shell to perform the required action e.g. nix-shell -p foo bar

  • age
  • git
  • nix-shell
  • nvim or other editor
  • sops-nix
  • ssh
  • ssh-to-age

Return to top

About

A stripped-down reference version of EmergentMind's private Nix-Secrets repo.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages