nixos/screen: add `pkgs.screen` to the system closure
commit3fde98e5876216db44bce612f8137852aadd7b78
authorMaximilian Bosch <maximilian@mbosch.me>
dateSat 23 Jun 2018, 03:31 (8 years ago)
parent9c0ebbe
nixos/doc/manual/release-notes/rl-1809.xml+8
@@ -322,6 +322,14 @@ inherit (pkgs.nixos {
322322 <literal>kubectl delete clusterrolebinding kubernetes-dashboard</literal>
323323 </para>
324324 </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>
325333 </itemizedlist>
326334 </section>
327335</section>
nixos/modules/programs/screen.nix+3−1
@@ -1,4 +1,4 @@
1−{ config, lib, ... }:
1+{ config, lib, pkgs, ... }:
22
33let
44 inherit (lib) mkOption mkIf types;
@@ -25,6 +25,8 @@ in
2525
2626 config = mkIf (cfg.screenrc != "") {
2727 environment.etc."screenrc".text = cfg.screenrc;
28+
29+ environment.systemPackages = [ pkgs.screen ];
2830 };
2931
3032}