diff options
| author | Kyren223 <contact@kyren.codes> | 2025-08-30 17:16:37 +0300 |
|---|---|---|
| committer | Kyren223 <contact@kyren.codes> | 2025-08-30 17:16:37 +0300 |
| commit | 518916f0f5e29d47f1e6ba3c9b3350632f149901 (patch) | |
| tree | 0d7f0dd5a8b62c198e3bbbf1660961da5e030e6e /modules/display.nix | |
| parent | 8ea9cbb602b459df4097d724070a67e32de7da2f (diff) | |
Removed stuff from hyprland
Diffstat (limited to 'modules/display.nix')
| -rw-r--r-- | modules/display.nix | 55 |
1 files changed, 13 insertions, 42 deletions
diff --git a/modules/display.nix b/modules/display.nix index 89e62d1..87b183a 100644 --- a/modules/display.nix +++ b/modules/display.nix @@ -1,45 +1,4 @@ -{ pkgs, lib, inputs, ... }: -with lib; let - hyprPluginPkgs = inputs.hyprland-plugins.packages.${pkgs.system}; - hypr-plugin-dir = pkgs.symlinkJoin { - name = "hyrpland-plugins"; - paths = with hyprPluginPkgs; [ - hyprbars - ]; - }; -in { - - programs.hyprland = { - enable = true; - package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; - portalPackage = - inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; - }; - environment.sessionVariables = { - HYPR_PLUGIN_DIR = hypr-plugin-dir; - }; - - xdg.portal = { - enable = true; - xdgOpenUsePortal = true; - - extraPortals = with pkgs; [ - kdePackages.xdg-desktop-portal-kde - xdg-desktop-portal-gtk - xdg-desktop-portal-wlr - ]; - - config = { - hyprland = { - default = [ "hyprland" "gtk" ]; - # "org.freedesktop.impl.portal.Secret" = [ "gnome-keyring" ]; - "org.freedesktop.impl.portal.FileChooser" = [ "kde" ]; - }; - }; - }; - - # Optional, hint electron apps to use wayland: - # environment.sessionVariables.NIXOS_OZONE_WL = "1"; +{ pkgs, ... }: { # Enable the KDE Plasma Desktop Environment. services.displayManager.sddm.enable = true; @@ -61,4 +20,16 @@ in { variant = ""; }; + # From when I tried hyprland, might aswell keep this? + xdg.portal = { + enable = true; + xdgOpenUsePortal = true; + + extraPortals = with pkgs; [ + kdePackages.xdg-desktop-portal-kde + xdg-desktop-portal-gtk + xdg-desktop-portal-wlr + ]; + }; + } |
