diff options
author | Sergey Mironov <grrwlf@gmail.com> | 2013-11-04 12:00:34 +0400 |
---|---|---|
committer | Sergey Mironov <grrwlf@gmail.com> | 2013-11-04 19:07:51 +0400 |
commit | 8c1e14e6cc4d2c3c44093936fe47d169db1e7829 (patch) | |
tree | 285fef3f2d9093ac11a1d697008ab8d9bc0ed772 /nixos/modules/programs/screen.nix | |
parent | 04fc38d23391aa92d92a7a5fe0682511c392d4ff (diff) |
Add GNU Screen program module
Diffstat (limited to 'nixos/modules/programs/screen.nix')
-rw-r--r-- | nixos/modules/programs/screen.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/modules/programs/screen.nix b/nixos/modules/programs/screen.nix new file mode 100644 index 0000000000000..1c63ebe6a11ec --- /dev/null +++ b/nixos/modules/programs/screen.nix @@ -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; + }; + +} |