Overriding Packages

The nix pill confused me and i thought i had to make overlays to do overrides but no

in packages (i.e. environment.systemPackages), just do

{pkgs, ...}: {
  environment.systemPackages = with pkgs; [
    (discord.override {withOpenASAR = true;})
  ];
}

This works as well

security.sudo.package = (pkgs.sudo.override {withInsults = true;});