Merge pull request #1168 from grwlf/nixos-gnu-screen

Add GNU Screen program module
This commit is contained in:
Peter Simons 2013-11-04 08:06:59 -08:00
commit 87c3907c14
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;
};
}