-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Screen configuration in /etc/screenrc #280
Conversation
System-wide configuration is more of a task for nixos, especially if you're putting files in /etc. |
Well, nixpkgs already makes, for many programs, them to read from /etc. Nothing new. Who should put that /etc/screenrc file there, it's up to nixos/sysadmin. |
@shlevy I'm not doing any system-wide configuration here, it's just that the package accepts a configuration which I've placed in etc. via environment.etc from NixOS. |
I'm open for suggestions for how to implement the same goal differently though, no matter if it requires changing nixos or nixpkgs. |
Make Screen read the configuration from /etc/screenrc
I saw screen comes without any $out/etc/screenrc, and we make many nixpkgs programs read from /etc, so I think it's all fine. |
Format using the base commit from nixfmt PR 283: NixOS/nixfmt@e825e95
Format using the base commit from nixfmt PR 284: NixOS/nixfmt@e825e95
Format using the base commit from nixfmt PR 285: NixOS/nixfmt@e825e95
Format using the base commit from nixfmt PR 283: NixOS/nixfmt@e825e95
Format using the base commit from nixfmt PR 286: NixOS/nixfmt@e825e95
Format using the base commit from nixfmt PR 283: NixOS/nixfmt@e825e95
It is in general possible to add a global screen configuration, but the nixpkgs screen package does not generate one. Most people only use a per-user configuration, of course.
I saw two options:
While not entirely happy, as it is slightly impure, I chose option (2): I think it is a strict improvement over the status quo and should be workable.
(Oh and yes, I am absolutely militant about Ctrl-a being a stupid escape sequence for screen.)