You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
564 B

  1. { config, pkgs, ... }:
  2. {
  3. options = {
  4. environment.noXlibs = pkgs.lib.mkOption {
  5. default = false;
  6. example = true;
  7. description = ''
  8. Switch off the options in the default configuration that require X libraries.
  9. Currently this includes: ssh X11 forwarding, dbus, fonts.enableCoreFonts,
  10. fonts.enableFontConfig
  11. '';
  12. };
  13. };
  14. config = pkgs.lib.mkIf config.environment.noXlibs {
  15. programs.ssh.setXAuthLocation = false;
  16. fonts = {
  17. enableCoreFonts = false;
  18. enableFontConfig = false;
  19. };
  20. };
  21. }