From 3fde98e5876216db44bce612f8137852aadd7b78 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sat, 23 Jun 2018 03:31:54 +0200 Subject: [PATCH] nixos/screen: add `pkgs.screen` to the system closure --- nixos/doc/manual/release-notes/rl-1809.xml | 8 ++++++++ nixos/modules/programs/screen.nix | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-1809.xml b/nixos/doc/manual/release-notes/rl-1809.xml index d3062b3ea32..667437a2413 100644 --- a/nixos/doc/manual/release-notes/rl-1809.xml +++ b/nixos/doc/manual/release-notes/rl-1809.xml @@ -322,6 +322,14 @@ inherit (pkgs.nixos { kubectl delete clusterrolebinding kubernetes-dashboard + + + The programs.screen module provides allows to configure + /etc/screenrc, however the module behaved fairly counterintuitive as + the config exists, but the package wasn't available. Since 18.09 pkgs.screen + will be added to environment.systemPackages. + + diff --git a/nixos/modules/programs/screen.nix b/nixos/modules/programs/screen.nix index f82338a69d2..c1daaa58f16 100644 --- a/nixos/modules/programs/screen.nix +++ b/nixos/modules/programs/screen.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: let inherit (lib) mkOption mkIf types; @@ -25,6 +25,8 @@ in config = mkIf (cfg.screenrc != "") { environment.etc."screenrc".text = cfg.screenrc; + + environment.systemPackages = [ pkgs.screen ]; }; }