Skip to content

Implement module for home-manager #21

@Lehmanator

Description

@Lehmanator

Without a module for home-manager, I am unable to fully replace sops-nix (or agenix) with secrix.

Would be nice if there was a flake output: homeManagerModules.secrix that defined options similar to secrix.system, but for individual users under a name like secrix.users.<name>.

Some implementation ideas beyond just renaming options & adapting their config implementations to home-manager:

  • Option(s) to toggle fallback to using system secrets with the same name if missing for the user. (e.g. I normally use nixos-rebuild
    • Fallback for all secrets: secrix.users.fooAdmin.enableSystemFallback = true
    • Fallback for individual secrets: secrix.users.fooAdmin.secrets.<name>.enableSystemFallback=true (or set value to a (list of) string(s) with secret name(s))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions