nixos/screen: add `pkgs.screen` to the system closure

+11 -1
+8
nixos/doc/manual/release-notes/rl-1809.xml
··· 322 322 <literal>kubectl delete clusterrolebinding kubernetes-dashboard</literal> 323 323 </para> 324 324 </listitem> 325 + <listitem> 326 + <para> 327 + The <varname>programs.screen</varname> module provides allows to configure 328 + <literal>/etc/screenrc</literal>, however the module behaved fairly counterintuitive as 329 + the config exists, but the package wasn't available. Since 18.09 <literal>pkgs.screen</literal> 330 + will be added to <literal>environment.systemPackages</literal>. 331 + </para> 332 + </listitem> 325 333 </itemizedlist> 326 334 </section> 327 335 </section>
+3 -1
nixos/modules/programs/screen.nix
··· 1 - { config, lib, ... }: 1 + { config, lib, pkgs, ... }: 2 2 3 3 let 4 4 inherit (lib) mkOption mkIf types; ··· 25 25 26 26 config = mkIf (cfg.screenrc != "") { 27 27 environment.etc."screenrc".text = cfg.screenrc; 28 + 29 + environment.systemPackages = [ pkgs.screen ]; 28 30 }; 29 31 30 32 }