Set a option with its default value in nixos configuration

As an alternative, more literal approach, this could work:

{ config, options, ... }:
{ nix.nixPath = options.nix.nixPath.default ++ [sth]; }
1 Like