Closed erooke closed 6 months ago
you shouldn't be using a path here, use a string instead
You can't use a string, it complains that it has to be a path.
Apr 20, 2024 6:47:44 PM éclairevoyant @.***>:
you shouldn't be using a path here, use a string instead
— Reply to this email directly, view it on GitHub[https://github.com/NixOS/nixpkgs/issues/305566#issuecomment-2067816137], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ALEG4APREVH2X2RGEVYZG4TY6L5BNAVCNFSM6AAAAABGQRWXVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRXHAYTMMJTG4]. You are receiving this because you authored the thread. [Tracking image][https://github.com/notifications/beacon/ALEG4AI7LLC7ZW4JSL7WHO3Y6L5BNA5CNFSM6AAAAABGQRWXVWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT3IBPMS.gif]
https://github.com/NixOS/nixpkgs/blob/754a00b38a44e774dba3518ced7efbf51a8970ba/nixos/modules/services/web-apps/bookstack.nix#L51 in particular here is it where it forces that's a path
lib.types.path
includes any string that starts with /
I could have sworn I had tried that :sweat_smile:. Thanks.
Describe the bug
While trying to use the bookstack module I encountered this error:
Despite having not set
services.bookstack.config.APP_KEY._secret
. It looks like the module is settingservices.bookstack.config.APP_KEY._secret
to beservices.bookstack.appKeyFile
despite them having disparate types.Steps To Reproduce
The following configuration triggers the issue.
Expected behavior
The config does not type error on variables I have not manipulated.
Additional context
Nixpkgs revision
5c24cf2f0a12ad855f444c30b2421d044120c66f
Workaround
I was able to work around this problem with the following config:
Notify maintainers
@ymarkus
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.