diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 62e5b8e49c2..4a725402330 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -55,6 +55,7 @@ ./programs/venus.nix ./programs/wvdial.nix ./programs/zsh/zsh.nix + ./programs/screen.nix ./rename.nix ./security/apparmor.nix ./security/apparmor-suid.nix diff --git a/nixos/modules/programs/screen.nix b/nixos/modules/programs/screen.nix new file mode 100644 index 00000000000..1c63ebe6a11 --- /dev/null +++ b/nixos/modules/programs/screen.nix @@ -0,0 +1,30 @@ +{ config, pkgs, ... }: + +let + inherit (pkgs.lib) mkOption mkIf types; + cfg = config.programs.screen; +in + +{ + ###### interface + + options = { + programs.screen = { + + screenrc = mkOption { + default = ""; + description = '' + The contents of /etc/screenrc file. + ''; + type = types.lines; + }; + }; + }; + + ###### implementation + + config = mkIf (cfg.screenrc != "") { + environment.etc."screenrc".text = cfg.screenrc; + }; + +}