2014-05-05 20:58:51 +02:00
|
|
|
{ config, lib, ... }:
|
2013-11-04 09:00:34 +01:00
|
|
|
|
|
|
|
let
|
2014-05-05 20:58:51 +02:00
|
|
|
inherit (lib) mkOption mkIf types;
|
2013-11-04 09:00:34 +01:00
|
|
|
cfg = config.programs.screen;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.screen = {
|
|
|
|
|
|
|
|
screenrc = mkOption {
|
|
|
|
default = "";
|
|
|
|
description = ''
|
|
|
|
The contents of /etc/screenrc file.
|
|
|
|
'';
|
|
|
|
type = types.lines;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf (cfg.screenrc != "") {
|
|
|
|
environment.etc."screenrc".text = cfg.screenrc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|