feat: Support raw file paths for certain config values#209
Open
JustTemmie wants to merge 1 commit intomainfrom
Open
feat: Support raw file paths for certain config values#209JustTemmie wants to merge 1 commit intomainfrom
JustTemmie wants to merge 1 commit intomainfrom
Conversation
JustTemmie
added a commit
to JustTemmie/NixOS-Dotfiles
that referenced
this pull request
Jul 23, 2025
…ed before enabling service
Collaborator
Author
|
why the fuck does github reference a random ass commit in another repo unrelated to this one wtf |
Owner
|
I'm not exactly sure what this does |
Collaborator
Author
it tries loading a file from the given value, if it's not a file it just uses the cofig value |
Owner
|
I dont really see why this would matter for a nix setup, i thought it could generate json files from nix files and if so then you could store the secret in another nix file that doesnt get included or use something like agenix (not sure if this usecase is appropriate) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This would allow config files to be able to link certain values to other text files, like this.
{ "jellyfin": { "url": "http://192.168.1.22:8096", "api_key": "/etc/nixos/private/jellyfin-api-key", "username": "Temmie" }, "discord": { "buttons": [{ "name": "dynamic", "url": "dynamic" }] }, "imgur": { "client_id": "/etc/nixos/private/imgur-client-id" }, "images": { "enable_images": true, "imgur_images": true } }this is extremely useful for NixOS and similar deployments, where i want the config file to be publicly available, but i obviously don't want to share my api keys.