mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
50 lines
1.3 KiB
Nix
50 lines
1.3 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./wayland-apps.nix
|
|
];
|
|
|
|
# hyprland configs, based on https://github.com/notwidow/hyprland
|
|
home.file.".config/hypr" = {
|
|
source = ./hypr-conf;
|
|
# copy the scripts directory recursively
|
|
recursive = true;
|
|
};
|
|
home.file.".config/gtk-3.0" = {
|
|
source = ./gtk-3.0;
|
|
recursive = true;
|
|
};
|
|
home.file.".gtkrc-2.0".source = ./gtkrc-2.0;
|
|
home.file.".config/hypr/wallpapers/wallpaper.png".source = ../wallpapers/wallpaper.png;
|
|
|
|
# allow fontconfig to discover fonts and configurations installed through home.packages
|
|
fonts.fontconfig.enable = true;
|
|
|
|
systemd.user.sessionVariables = {
|
|
"NIXOS_OZONE_WL" = "1"; # for any ozone-based browser & electron apps to run on wayland
|
|
"MOZ_ENABLE_WAYLAND" = "1"; # for firefox to run on wayland
|
|
"MOZ_WEBRENDER" = "1";
|
|
|
|
# for hyprland with nvidia gpu, ref https://wiki.hyprland.org/Nvidia/
|
|
"LIBVA_DRIVER_NAME" = "nvidia";
|
|
"XDG_SESSION_TYPE" = "wayland";
|
|
"GBM_BACKEND" = "nvidia-drm";
|
|
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
|
|
"WLR_NO_HARDWARE_CURSORS" = "1";
|
|
"WLR_EGL_NO_MODIFIRES" = "1";
|
|
};
|
|
|
|
# set cursor size and dpi for 4k monitor
|
|
# this is for xwayland
|
|
xresources.properties = {
|
|
"Xcursor.size" = 32;
|
|
"Xft.dpi" = 172;
|
|
};
|
|
|
|
}
|
|
|