2018-06-23 02:31:54 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
2013-11-04 08:00:34 +00:00
|
|
|
|
|
|
|
let
|
2014-05-05 19:58:51 +01:00
|
|
|
inherit (lib) mkOption mkIf types;
|
2013-11-04 08:00:34 +00:00
|
|
|
cfg = config.programs.screen;
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.screen = {
|
|
|
|
|
|
|
|
screenrc = mkOption {
|
|
|
|
default = "";
|
2022-07-28 22:19:15 +01:00
|
|
|
description = lib.mdDoc ''
|
2013-11-04 08:00:34 +00:00
|
|
|
The contents of /etc/screenrc file.
|
|
|
|
'';
|
|
|
|
type = types.lines;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
|
|
|
|
config = mkIf (cfg.screenrc != "") {
|
2019-08-13 22:52:01 +01:00
|
|
|
environment.etc.screenrc.text = cfg.screenrc;
|
2018-06-23 02:31:54 +01:00
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.screen ];
|
2020-01-03 15:16:25 +00:00
|
|
|
security.pam.services.screen = {};
|
2013-11-04 08:00:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|