This patch does two things 1. builds nano with sysconfdir=/etc; and 2. adds an option programs.nano.nanorcwip/yesman
parent
64561b437d
commit
decb4266f1
@ -0,0 +1,35 @@ |
||||
{ config, lib, ... }: |
||||
|
||||
let |
||||
cfg = config.programs.nano; |
||||
in |
||||
|
||||
{ |
||||
###### interface |
||||
|
||||
options = { |
||||
programs.nano = { |
||||
|
||||
nanorc = lib.mkOption { |
||||
type = lib.types.lines; |
||||
default = ""; |
||||
description = '' |
||||
The system-wide nano configuration. |
||||
See <citerefentry><refentrytitle>nanorc</refentrytitle><manvolnum>5</manvolnum></citerefentry>. |
||||
''; |
||||
example = '' |
||||
set nowrap |
||||
set tabstospaces |
||||
set tabsize 4 |
||||
''; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
###### implementation |
||||
|
||||
config = lib.mkIf (cfg.nanorc != "") { |
||||
environment.etc."nanorc".text = cfg.nanorc; |
||||
}; |
||||
|
||||
} |
Loading…
Reference in new issue