How to specify kernel command line arguments?

I would like to know how is it possible to specify kernel command line arguments for the bootloader.

Is it an option I can add to my NixOS configuration, or is it something else?

It’s done with boot.kernelParams.

2 Likes

I’ll add it to my configuration file, and then I can rebuild with nixos-rebuild with the option --install-bootloader?

Shouldn’t need the --install-bootloader option, the bootloader should already be installed. This will just write a new config for the bootloader with those parameters set. --install-booatloader should only very rarely be needed in general.

1 Like