nix-config/home/hyprland/default.nix

65 lines
1.8 KiB
Nix
Raw Normal View History

2025-03-25 01:59:21 +01:00
{ inputs, pkgs, ...}:
2025-03-24 12:11:44 +01:00
2025-03-24 23:01:13 +01:00
{
2025-03-24 23:15:10 +01:00
programs.kitty.enable = true;
2025-03-25 01:59:21 +01:00
wayland.windowManager.hyprland = {
2025-03-25 02:13:48 +01:00
inherit package;
2025-03-25 01:59:21 +01:00
enable = true;
2025-03-25 02:18:28 +01:00
systemd = {
enable = true;
variables = [ "--all" ];
};
2025-03-25 01:59:21 +01:00
plugins = [
2025-03-25 02:13:48 +01:00
#inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
2025-03-25 01:59:21 +01:00
];
};
2025-03-24 23:15:10 +01:00
home.sessionVariables.NIXOS_OZONE_WL = "1";
2025-03-24 23:01:13 +01:00
2025-03-24 23:15:10 +01:00
wayland.windowManager.hyprland.settings = {
2025-03-25 02:13:48 +01:00
env = [
"NIXOS_OZONE_WL,1"
"MOZ_ENABLE_WAYLAND,1"
"MOZ_WEBRENDER,1"
"_JAVA_AWT_WM_NONREPARENTING,1"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"QT_QPA_PLATFORM,wayland"
"SDL_VIDEODRIVER,wayland"
"GDK_BACKEND,wayland"
];
extraConfig = builtins.readFile ./hyprland.conf;
2025-03-24 23:15:10 +01:00
};
2025-03-25 02:18:28 +01:00
# NOTE: this executable is used by greetd to start a wayland session when system boot up
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module
home.file.".wayland-session" = {
source = "${package}/bin/Hyprland";
executable = true;
};
# hyprland configs, based on https://github.com/notwidow/hyprland
/*xdg.configFile = {
"hypr/mako" = {
source = ../conf/mako;
recursive = true;
};
"hypr/scripts" = {
source = ../conf/scripts;
recursive = true;
};
"hypr/waybar" = {
source = ../conf/waybar;
recursive = true;
};
"hypr/wlogout" = {
source = ../conf/wlogout;
recursive = true;
};
# music player - mpd
"mpd" = {
source = ../conf/mpd;
recursive = true;
};
};*/
2025-03-24 12:11:44 +01:00
}