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.

52 lines
1.3 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. variables = {
  20. XDG_DESKTOP_DIR = "$HOME/";
  21. XDG_CACHE_HOME = "$HOME/.cache";
  22. XDG_CONFIG_HOME = "$HOME/.config";
  23. XDG_DATA_HOME = "$HOME/.local/share";
  24. XDG_BIN_HOME = "$HOME/.local/bin";
  25. };
  26. systemPackages = with pkgs; [
  27. pkgs.sqlite
  28. pkgs.pfetch
  29. pkgs.cmatrix
  30. pkgs.asciiquarium
  31. ];
  32. extraInit = ''
  33. export XAUTHORITY=/tmp/Xauthority
  34. export xserverauthfile=/tmp/xserverauth
  35. [ -e ~/.Xauthority ] && mv -f ~/.Xauthority "$XAUTHORITY"
  36. [ -e ~/.serverauth.* ] && mv -f ~/.serverauth.* "$xserverauthfile"
  37. '';
  38. };
  39. services.picom.enable = true;
  40. services.printing.enable = true;
  41. fonts.fonts = with pkgs; [
  42. iosevka-bin
  43. fira-code-symbols
  44. emacs-all-the-icons-fonts
  45. ];
  46. };
  47. }