Compare commits
No commits in common. "2f2f6c96b1949146e01824f4fab1b868f168a1b4" and "02c914e9cec2a944c79cc280886427ce652d4350" have entirely different histories.
2f2f6c96b1
...
02c914e9ce
@ -37,7 +37,7 @@ in
|
|||||||
cursor = {
|
cursor = {
|
||||||
name = "macOS";
|
name = "macOS";
|
||||||
package = pkgs.apple-cursor;
|
package = pkgs.apple-cursor;
|
||||||
size = 26;
|
size = 24;
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
|
@ -6,38 +6,9 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib)
|
inherit (lib)
|
||||||
attrValues
|
|
||||||
concatStringsSep
|
|
||||||
elem
|
elem
|
||||||
mapAttrs
|
optionals
|
||||||
mkIf
|
|
||||||
;
|
;
|
||||||
concatMapAttrsStringSep =
|
|
||||||
sep: f: attrs:
|
|
||||||
concatStringsSep sep (attrValues (mapAttrs f attrs));
|
|
||||||
globalVariables =
|
|
||||||
{
|
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
||||||
GDK_BACKEND = "wayland";
|
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
|
||||||
NIXOS_OZONE_WL = "1";
|
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
|
||||||
SDL_VIDEODRIVE = "wayland";
|
|
||||||
XDG_SESSION_TYPE = "wayland";
|
|
||||||
}
|
|
||||||
// (
|
|
||||||
if elem "nvidia" osConfig.services.xserver.videoDrivers then
|
|
||||||
{
|
|
||||||
GBM_BACKEND = "nvidia-drm";
|
|
||||||
LIBVA_DRIVER_NAME = "nvidia";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{ }
|
|
||||||
);
|
|
||||||
hyprVariables = {
|
|
||||||
AQ_DRM_DEVICES = "/dev/dri/card0:/dev/dri/card1";
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@ -51,19 +22,26 @@ in
|
|||||||
"SF Pro Text"
|
"SF Pro Text"
|
||||||
];
|
];
|
||||||
|
|
||||||
xdg.configFile = mkIf osConfig.programs.hyprland.withUWSM {
|
|
||||||
"uwsm/env".text = concatMapAttrsStringSep "\n" (
|
|
||||||
name: value: "export ${name}=${value}"
|
|
||||||
) globalVariables;
|
|
||||||
"uwsm/env-hyprland".text = concatMapAttrsStringSep "\n" (
|
|
||||||
name: value: "export ${name}=${value}"
|
|
||||||
) hyprVariables;
|
|
||||||
};
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# plugins = [ hypr-dynamic-cursors ]; # https://github.com/VirtCode/hypr-dynamic-cursors
|
# plugins = [ hypr-dynamic-cursors ]; # https://github.com/VirtCode/hypr-dynamic-cursors
|
||||||
settings = {
|
settings = {
|
||||||
|
env =
|
||||||
|
optionals (elem "nvidia" osConfig.services.xserver.videoDrivers) [
|
||||||
|
"GBM_BACKEND,nvidia-drm"
|
||||||
|
"LIBVA_DRIVER_NAME,nvidia"
|
||||||
|
]
|
||||||
|
++ [
|
||||||
|
"_JAVA_AWT_WM_NONREPARENTING,1"
|
||||||
|
"GDK_BACKEND,wayland"
|
||||||
|
"MOZ_ENABLE_WAYLAND,1"
|
||||||
|
"NIXOS_OZONE_WL,1"
|
||||||
|
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
|
||||||
|
"QT_QPA_PLATFORM,wayland"
|
||||||
|
"SDL_VIDEODRIVER,wayland"
|
||||||
|
"XDG_SESSION_TYPE,wayland"
|
||||||
|
];
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 5;
|
gaps_in = 5;
|
||||||
gaps_out = 20;
|
gaps_out = 20;
|
||||||
|
@ -113,8 +113,6 @@
|
|||||||
|
|
||||||
plugins.undotree.enable = true;
|
plugins.undotree.enable = true;
|
||||||
|
|
||||||
plugins.vim-surround.enable = true;
|
|
||||||
|
|
||||||
plugins.web-devicons.enable = true;
|
plugins.web-devicons.enable = true;
|
||||||
|
|
||||||
# plugins.gitsigns.enable = true;
|
# plugins.gitsigns.enable = true;
|
||||||
@ -127,6 +125,7 @@
|
|||||||
# plugins.nvim-tree.enable = true;
|
# plugins.nvim-tree.enable = true;
|
||||||
# plugins.oil.enable = true;
|
# plugins.oil.enable = true;
|
||||||
# plugins.project-nvim.enable = true;
|
# plugins.project-nvim.enable = true;
|
||||||
|
# plugins.surround.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
home.sessionVariables.EDITOR = "nvim";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user