From 1d3affdace68e9cdf9a9cadb64fb89de058860bf Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 1 Feb 2023 13:33:40 -0500 Subject: [PATCH] remove hyprland folder --- modules/hyprland/default.nix | 106 ----------------------------------- 1 file changed, 106 deletions(-) delete mode 100755 modules/hyprland/default.nix diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix deleted file mode 100755 index db5448c..0000000 --- a/modules/hyprland/default.nix +++ /dev/null @@ -1,106 +0,0 @@ -{ config, pkgs, lib, inputs, ... }: - -let - 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 - systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-kde - systemctl --user start pipewire wireplumber pipewire-media-session xdg-desktop-portal xdg-desktop-portal-hyprland - ''; - }; - - configure-gtk = pkgs.writeTextFile { - name = "configure-gtk"; - destination = "/bin/configure-gtk"; - executable = true; - text = let - schema = pkgs.gsettings-desktop-schemas; - datadir = "${schema}/share/gesettings/schemas/${schema.name}"; - in '' - export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS - gnome_schema=org.gnome.desktop.interface - gesettings set $gnome_schema gtk-theme 'Catppuccin-Mocha-Pink-Dark' - ''; - }; - - flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz"; - hyprland = (import flake-compat { - src = builtins.fetchTarball "https://github.com/vaxerski/Hyprland/archive/master.tar.gz"; - }).defaultNix; - -in -{ - environment.systemPackages = with pkgs; [ - dbus-hyprland-environment - configure-gtk - wayland - glib - grim - slurp - wl-clipboard - wlogout - wlr-randr - rofi-wayland - swayidle - swaylock-effects - ]; - - services.dbus.enable = true; - xdg.portal = { - enable = true; - wlr.enable = true; - extraPortals = with pkgs; [ - - ]; - - }; - - programs.hyprland.enable = true; - programs.xwayland.enable = true; - - environment.sessionVariables = rec { - GBM_BACKEND = "nvidia-drm"; - __GL_GSYNC_ALLOWED = "0"; - __GL_VRR_ALLOWED = "0"; - WLR_DRM_NO_ATOMIC = "1"; - __GLX_VENDOR_LIBRARY_NAME = "nvidia"; - _JAVA_AWT_WM_NONREPARENTING = "1"; - - # Will break SDDM if running X11 - QT_QPA_PLATFORM = "wayland"; - QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; - - GDK_BACKEND = "wayland"; - WLR_NO_HARDWARE_CURSORS = "1"; - MOZ_ENABLE_WAYLAND = "1"; - PATH = [ - "$HOME/bin/:$PATH" - ]; - - GTK_THEME = "Catppuccin-Pink-Dark"; - XCURSOR_THEME = "Catppuccin-Mocha-Pink"; - XCURSOR_SIZE = "24"; - - }; - - services.greetd = { - enable = true; - settings = rec { - initial_session = { - command = "Hyprland"; - user = "notoh"; - }; - default_session = initial_session; - }; - }; - - environment.etc."greetd/environments".text = '' - Hyprland - ''; - - -}