Jump to content

Nano

From NixOS Wiki

Nano is a simple, lightweight command-line text editor. It is a popular choice for quick edits in the terminal.

On NixOS, nano is installed by default.

Configuration

System-wide nano configurations are defined through the programs.nano.nanorc option. Refer to the nanorc man page for a full list of settings.

❄︎ /etc/nixos/configuration.nix
  programs.nano = {
    enable = true;
    nanorc = ''
      set nowrap
      set tabstospaces
      set tabsize 2
    ''; 
  };

For a full list of nano module options, see programs.nano.