Set a option with its default value in nixos configuration

Give

nix.nixPath = mkOptionDefault [
  "my-path=/the/path/you/want/to/add"
];

a try if you want to merge with the option’s default value.

3 Likes