1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 21:54:10 +00:00
nixpkgs/nixos/modules/programs/screen.nix

33 lines
523 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
2013-11-04 08:00:34 +00:00
let
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 = "";
description = ''
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;
environment.systemPackages = [ pkgs.screen ];
2013-11-04 08:00:34 +00:00
};
}