2023-11-26 02:19:43 -05:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}: let
|
2023-02-01 13:32:32 -05:00
|
|
|
dbus-hyprland-environment = pkgs.writeTextFile {
|
|
|
|
name = "dbus-hyprland-environment";
|
|
|
|
destination = "/bin/dbus-hyprland-environment";
|
|
|
|
executable = true;
|
|
|
|
text = ''
|
|
|
|
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=hyprland
|
2023-04-05 15:00:50 -04:00
|
|
|
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
2023-02-01 13:32:32 -05:00
|
|
|
systemctl --user start pipewire wireplumber pipewire-media-session xdg-desktop-portal xdg-desktop-portal-hyprland
|
|
|
|
'';
|
|
|
|
};
|
2023-04-23 17:45:37 -04:00
|
|
|
in {
|
2023-03-26 06:12:19 -04:00
|
|
|
imports = [
|
2024-01-22 03:48:37 -05:00
|
|
|
./greetd.nix
|
2023-03-26 06:12:19 -04:00
|
|
|
];
|
2023-04-23 17:45:37 -04:00
|
|
|
|
2023-02-01 13:32:32 -05:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
dbus-hyprland-environment
|
|
|
|
wayland
|
|
|
|
glib
|
|
|
|
grim
|
|
|
|
slurp
|
2023-12-05 19:43:19 -05:00
|
|
|
satty
|
2023-02-01 13:32:32 -05:00
|
|
|
wl-clipboard
|
|
|
|
wlr-randr
|
|
|
|
swayidle
|
|
|
|
swaylock-effects
|
2023-06-10 06:01:35 -04:00
|
|
|
hyprpicker
|
2024-01-25 08:07:02 -05:00
|
|
|
swww
|
2023-02-01 13:32:32 -05:00
|
|
|
];
|
|
|
|
|
|
|
|
services.dbus.enable = true;
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2023-04-05 15:00:50 -04:00
|
|
|
extraPortals = with pkgs; [
|
|
|
|
xdg-desktop-portal-gtk
|
2023-11-26 02:19:43 -05:00
|
|
|
inputs.hyprland.packages.${system}.xdg-desktop-portal-hyprland
|
2023-04-05 15:00:50 -04:00
|
|
|
];
|
2023-11-26 02:10:02 -05:00
|
|
|
config = {
|
|
|
|
common.default = "*";
|
|
|
|
};
|
2023-04-23 17:45:37 -04:00
|
|
|
};
|
2023-02-01 13:32:32 -05:00
|
|
|
|
2023-06-10 05:04:09 -04:00
|
|
|
environment.sessionVariables = {
|
2023-02-01 13:32:32 -05:00
|
|
|
GBM_BACKEND = "nvidia-drm";
|
|
|
|
__GL_GSYNC_ALLOWED = "0";
|
|
|
|
__GL_VRR_ALLOWED = "0";
|
|
|
|
WLR_DRM_NO_ATOMIC = "1";
|
2023-06-10 06:01:35 -04:00
|
|
|
XDG_SESSION_TYPE = "wayland";
|
2023-02-01 13:32:32 -05:00
|
|
|
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
|
|
|
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
|
|
QT_QPA_PLATFORM = "wayland";
|
|
|
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
|
|
GDK_BACKEND = "wayland";
|
|
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
|
|
MOZ_ENABLE_WAYLAND = "1";
|
2023-03-07 08:31:06 -05:00
|
|
|
WLR_BACKEND = "vulkan";
|
|
|
|
WLR_RENDERER = "vulkan";
|
|
|
|
XCURSOR_SIZE = "24";
|
|
|
|
NIXOS_OZONE_WL = "1";
|
2023-05-14 09:57:20 -04:00
|
|
|
EDITOR = "hx";
|
2023-06-10 05:04:09 -04:00
|
|
|
TERMINAL = "wezterm";
|
2023-02-01 13:32:32 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.etc."greetd/environments".text = ''
|
|
|
|
Hyprland
|
|
|
|
'';
|
2023-04-23 17:45:37 -04:00
|
|
|
}
|