Where to find options?

Hello. I’m new to NixOS and trying to learn by porting systems over. I set up code-server which works great. However, I can’t find where the options are defined for it.

Where should I be looking?

Where I’ve been looking https://github.com/NixOS/nixpkgs/blob/7f3473534d47af832cd255ec8ff52ec5fb8274b2/pkgs/servers/code-server/default.nix No mkOption in that file, nor the options I know exist, such as “auth” and “port”.

Working config

services.code-server = { # ssh -N -L 8888: root@control
        enable = true;
        auth = "none";
        port = 8888;
1 Like

the problem is that you’re looking in the derivation definition. You need to look in its module definition instead nixpkgs/nixos/modules/services/web-apps/code-server.nix

1 Like

Thank you very much :smile: I will look deeper into this.