I showed you my source code, pls respond
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.

45 lines
1.1 KiB

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, ... }:
  3. with lib;
  4. with lib.types;
  5. let cfg = config.modules.x11;
  6. in {
  7. options.modules.x11 = {
  8. enable = mkOption {
  9. type = bool;
  10. default = false;
  11. };
  12. };
  13. config = mkIf cfg.enable {
  14. services.xserver.enable = true;
  15. services.xserver.layout = "us";
  16. services.xserver.libinput.enable = true;
  17. services.xserver.displayManager.startx.enable = true;
  18. environment = {
  19. systemPackages = with pkgs; [
  20. pkgs.sqlite
  21. pkgs.pfetch
  22. pkgs.cmatrix
  23. pkgs.asciiquarium
  24. ];
  25. extraInit = ''
  26. export XAUTHORITY=/tmp/Xauthority
  27. export xserverauthfile=/tmp/xserverauth
  28. [ -e ~/.Xauthority ] && mv -f ~/.Xauthority "$XAUTHORITY"
  29. [ -e ~/.serverauth.* ] && mv -f ~/.serverauth.* "$xserverauthfile"
  30. '';
  31. };
  32. services.picom.enable = true;
  33. services.printing.enable = true;
  34. fonts.packages = with pkgs; [
  35. iosevka-bin
  36. fira-code-symbols
  37. emacs-all-the-icons-fonts
  38. ];
  39. };
  40. }