3
0
Fork 0
forked from mirrors/nixpkgs

Add GNU Screen program module

This commit is contained in:
Sergey Mironov 2013-11-04 12:00:34 +04:00
parent 04fc38d233
commit 8c1e14e6cc
2 changed files with 31 additions and 0 deletions

View file

@ -55,6 +55,7 @@
./programs/venus.nix
./programs/wvdial.nix
./programs/zsh/zsh.nix
./programs/screen.nix
./rename.nix
./security/apparmor.nix
./security/apparmor-suid.nix

View file

@ -0,0 +1,30 @@
{ config, pkgs, ... }:
let
inherit (pkgs.lib) mkOption mkIf types;
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;
};
}