2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.programs.nano;
|
|
|
|
in {
|
|
|
|
options.custom.programs.nano.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# https://wiki.archlinux.org/title/Nano
|
|
|
|
# https://www.nano-editor.org
|
|
|
|
programs.nano = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# https://www.nano-editor.org/dist/latest/nanorc.5.html
|
|
|
|
#?? man nanorc
|
|
|
|
nanorc = ''
|
|
|
|
set autoindent
|
|
|
|
set magic
|
|
|
|
set minibar
|
2024-09-11 23:21:32 +00:00
|
|
|
set linenumbers
|
2024-09-09 00:22:14 +00:00
|
|
|
set tabsize 2
|
|
|
|
set tabstospaces
|
|
|
|
set trimblanks
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|