Merge pull request #42410 from Ma27/improve-screen-module
nixos/screen: add `pkgs.screen` to the system closure
This commit is contained in:
commit
904114fdb8
@ -322,6 +322,14 @@ inherit (pkgs.nixos {
|
|||||||
<literal>kubectl delete clusterrolebinding kubernetes-dashboard</literal>
|
<literal>kubectl delete clusterrolebinding kubernetes-dashboard</literal>
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The <varname>programs.screen</varname> module provides allows to configure
|
||||||
|
<literal>/etc/screenrc</literal>, however the module behaved fairly counterintuitive as
|
||||||
|
the config exists, but the package wasn't available. Since 18.09 <literal>pkgs.screen</literal>
|
||||||
|
will be added to <literal>environment.systemPackages</literal>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
</section>
|
</section>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption mkIf types;
|
inherit (lib) mkOption mkIf types;
|
||||||
@ -25,6 +25,8 @@ in
|
|||||||
|
|
||||||
config = mkIf (cfg.screenrc != "") {
|
config = mkIf (cfg.screenrc != "") {
|
||||||
environment.etc."screenrc".text = cfg.screenrc;
|
environment.etc."screenrc".text = cfg.screenrc;
|
||||||
|
|
||||||
|
environment.systemPackages = [ pkgs.screen ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user