nix secrets library functions #1868
Labels
No Label
backups
blog
bootstrapping
bug
changes-requested
cli
documentation
duplicate
enhancement
facts
help wanted
invalid
Inventory
low_prio
manager
modules
needs-review
networking
packaging
question
secrets
template
test
tooling
user-testing
vm
wontfix
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: clan/clan-core#1868
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently one clan module asks for one secret prompt. However often times we want to define multiple users / wifis / whatever. For this we need to generate nix secret attrsets and merge them into the module system. Currently every module needs to do that itself. However we should define some common functions to abstract that away or possibly rethink the interface?
The iwd module currently does it 'correctly': https://git.clan.lol/clan/clan-core/src/branch/main/clanModules/iwd/default.nix
However modules like the 'user-password' should have this option too: https://git.clan.lol/clan/clan-core/src/branch/main/clanModules/user-password/default.nix
We need a function for:
import the clan module is everything you need
if every module needs submodule options?Example: dyndns.conf
The problem lies in the fact that nixos modules can't be instantiated twice. If we could we wouldn't have to deal with this issue.