hlissner / dotfiles

And I say hey, what's going on?
https://youtu.be/ZZ5LpwO-An4
MIT License
1.62k stars 98 forks source link

mkEnableOption expects string instead of bool #30

Closed hugosenari closed 2 years ago

hugosenari commented 2 years ago

What did you expect to happen?

Configuration could return description when try to document it.

What actually happened?

An exception raised:

error: cannot coerce a Boolean to a string
           99|     description = "Whether to enable ${name}.";

Describe your attempts to resolve the issue

I omitted skype module from my documentation attempts

# "modules/desktop/apps/skype.nix"

Steps to reproduce

  1. clone friendly-modules
  2. uncomment line with # "modules/desktop/apps/skype.nix" of hlissner.nix
  3. run nix develop --build

Package commit

fb0593af66ef8e560e89ea7e72699b84761597e0

System Information

I use NixOS unstable, and I document random modules instead of eat my dog when a have no homework

hlissner commented 2 years ago

Ah, good catch. I haven't used Skype in so long this went right under my radar. It should've been mkBoolOpt instead. Thanks for letting me know!