bphenriques / dotfiles

dotfiles using Nix
MIT License
9 stars 0 forks source link

Wayland desktop environment #51

Open bphenriques opened 4 months ago

bphenriques commented 4 months ago

Wayland:

https://github.com/prasanthrangan/hyprdots

 # Enable other essential services
  services.gvfs.enable = true; # Mount, trash, and other functionalities
  services.tumbler.enable = true; # Thumbnail support for images

  # Install firefox.
  # programs.firefox.enable = true;

  # Install thunar.
  programs.thunar.enable = true;

  # Install Hyprland
  programs.hyprland.enable = true;

services.displayManager = {
    sessionPackages = [ pkgs.hyprland ];
  };

Cursor stuff:

{ config, pkgs, lib, ... }:

{
  environment.systemPackages = with pkgs; [
    capitaine-cursors
  ];

  # Set cursor theme for X11
  environment.variables = {
    XCURSOR_THEME = "capitaine-cursors";
    XCURSOR_SIZE = "24";
  };

  # Set the cursor theme for GTK applications
  environment.etc."gtk-3.0/settings.ini".text = ''
    [Settings]
    gtk-cursor-theme-name = capitaine-cursors
    gtk-cursor-theme-size = 24
  '';

  # Set the cursor theme for GTK2 applications
  environment.etc."gtk-2.0/settings.ini".text = ''
    gtk-cursor-theme-name = capitaine-cursors
    gtk-cursor-theme-size = 24
  '';
}

More hyperland stuff

{ config, pkgs, ... }:
{

  environment.systemPackages = with pkgs; [
    # other packages
  hyprpaper
  hyprlock
  hypridle
  hyprshot
  gtk3
  gtk4
  rofi-wayland
  waybar
      ];

  xdg.portal = {
    enable = true;
    extraPortals = with pkgs; [xdg-desktop-portal-gtk xdg-desktop-portal-hyprland];
    config.preferred.default = ["hyprland" "gtk"];
    xdgOpenUsePortal = true;
  };

  }

Waybar: https://github.com/Rouzihiro/iMac/blob/main/Hyprland%20light%20AMD%20support/waybar.nix