21 Oct 2024 |
liv <3 | Download clipboard.png | 20:15:14 |
liv <3 | This is with config.liv.laptop and options for the other two. | 20:15:30 |
liv <3 | Download clipboard.png | 20:15:35 |
liv <3 | And this is with options.liv.laptop and config for the other two | 20:16:03 |
liv <3 | Download clipboard.png | 20:16:06 |
liv <3 | Which leads me to believe I should try without options in front of it, but then I get: | 20:16:27 |
liv <3 | Download clipboard.png | 20:16:36 |
aftix | You're defining the option config.liv.laptop.enable but trying to set config.liv.laptop to a Boolean (but it has to be an attrset because it contains the key "enable") | 20:19:30 |
liv <3 | ah okay, so now I have the following: | 20:27:29 |
liv <3 | Download clipboard.png | 20:27:29 |
liv <3 | Download clipboard.png | 20:27:41 |
liv <3 | and that returns | 20:28:02 |
liv <3 | Download clipboard.png | 20:28:04 |
emily | just liv.laptop.enable = true . | 20:31:09 |
emily | uh, also your option declaration is wrong. | 20:31:22 |
emily | get rid of the type /default stuff. | 20:31:28 |
aftix | The type and default aren't doing what you think here. Remove the enable= line and put a mkOption between laptop = and { if you want to use config.liv.laptop = true , or remove the type and default lines if you want to use config.liv.laptop.enable = true
| 20:31:33 |
emily | that's part of enable and handled by mkEnableOption . | 20:31:34 |
liv <3 | In reply to @liv:liv.town sent an image. when I remove .enable from here, it returns error: An option declaration for liv.laptop' has type 'bool' rather than an attribute set.` again | 20:31:36 |
liv <3 | In reply to @aftix:matrix.org
The type and default aren't doing what you think here. Remove the enable= line and put a mkOption between laptop = and { if you want to use config.liv.laptop = true , or remove the type and default lines if you want to use config.liv.laptop.enable = true
ah I see, they're now defining liv.laptop itself, right? | 20:32:59 |
aftix | Because you need to define an option with a function such as mkOption or it's siblings (call the function with an attrset as an argument) and not by setting the name equal to a bare attrset
| 20:33:09 |
wuyoli | I am currently in https://matrix.to/#/#community:nixos.org and https://matrix.to/#/#space:nixos.org which one is the current matrix space? | 20:39:44 |
emily | I think those are the same? | 20:44:28 |
liv <3 | In reply to @emilazy:matrix.org just liv.laptop.enable = true . that wont work either :p | 20:48:26 |
liv <3 | it's still yelling about a set/boolean | 20:48:36 |
emily | it should, if the other issues are addressed. | 20:48:46 |
liv <3 | Download clipboard.png | 20:50:29 |
liv <3 | Download clipboard.png | 20:50:29 |
liv <3 | this is what I have now | 20:50:34 |
mjm | take the options off the front in that first one | 20:50:46 |