Archived. All maintenance and development now happens as part of monorepo.
This repository has been archived on 2024-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Payas Relekar 629846a1f9 Setup secrets management using agenix
agenix uses age (a utility + standard) that encrypts secrets using ssh key.
This simplifies secrets management quite a bit compared to GPG (my attempts for
which have failed so far).

Changes included:
        - Encrypt all current keys (mail, backups) using age, configured via
        agenix
        - All encrypted keys are committed to git repo and decrypted during boot
        - None of the keys are used anywhere just yet. They will replace file
        paths in future commit after testing
        - Decrypted keys are available after boot under user name with read-only
        permissions at default agenix location (as of this commit)
        - The Nix variable path is provided by agenix and can be used instead of
        having to recreate
        - multiple keys can be specified for single key, but for now I am only
        using one

For now, the code is dirty and can definitely use improvements. It is just at a
place where it is all working right now.

TODO: Get age + agenix in environment packages available at runtime in NixOS

Links:
    - https://github.com/ryantm/agenix
    - https://github.com/hlissner/dotfiles
2022-02-22 03:09:20 +05:30
cachix Update Nix config options for latest version 2022-02-03 19:54:39 +05:30
hosts/enterprise Setup secrets management using agenix 2022-02-22 03:09:20 +05:30
modules Setup secrets management using agenix 2022-02-22 03:09:20 +05:30
.gitignore Setup secrets management using agenix 2022-02-22 03:09:20 +05:30
cachix.nix Update Nix config options to match upstream 2022-02-12 19:31:42 +05:30
flake.lock flake.lock: 2022_02_20 2022-02-20 17:19:32 +05:30
flake.nix Setup secrets management using agenix 2022-02-22 03:09:20 +05:30
hardware-configuration.nix Update Nix config options for latest version 2022-02-03 19:54:39 +05:30
nix.nix Refactor some parts into separate files 2022-02-14 16:15:27 +05:30