mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-30 23:34:12 +03:00
31 lines
474 B
Nix
31 lines
474 B
Nix
|
{ 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;
|
||
|
};
|
||
|
|
||
|
}
|