nixpkgs/nixos/modules/programs/screen.nix

31 lines
468 B
Nix
Raw Normal View History

{ config, lib, ... }:
2013-11-04 12:00:34 +04:00
let
inherit (lib) mkOption mkIf types;
2013-11-04 12:00:34 +04: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;
};
}