diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 51e2e203..4f821f63 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -42,12 +42,25 @@ theme = catppuccin-themes.hyprland; }; }; - xdg.configFile = { - "hypr/hyprpaper.conf".text = '' - preload = ${wallpapers.default} - wallpaper = ,${wallpapers.default} - ''; - "hypr/macchiato.conf".source = ./macchiato.conf; - "hypr/extra.conf" = lib.mkDefault { text = ""; }; + xdg = { + configFile = { + "hypr/hyprpaper.conf".text = '' + preload = ${wallpapers.default} + wallpaper = ,${wallpapers.default} + ''; + "hypr/macchiato.conf".source = ./macchiato.conf; + "hypr/extra.conf" = lib.mkDefault { text = ""; }; + }; + mimeApps = { + enable = true; + defaultApplications = { + "image/jpeg" = [ "swayimg.desktop" ]; + "image/png" = [ "swayimg.desktop" ]; + }; + associations.added = { + "image/jpeg" = [ "swayimg.desktop" ]; + "image/png" = [ "swayimg.desktop" ]; + }; + }; }; } diff --git a/system/hyprland.nix b/system/hyprland.nix index 3651b308..580ee1e9 100644 --- a/system/hyprland.nix +++ b/system/hyprland.nix @@ -65,22 +65,9 @@ }; }; }; - xdg = { - portal = { - enable = true; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; - }; - mimeApps = { - enable = true; - defaultApplications = { - "image/jpeg" = [ "swayimg.desktop" ]; - "image/png" = [ "swayimg.desktop" ]; - }; - associations.added = { - "image/jpeg" = [ "swayimg.desktop" ]; - "image/png" = [ "swayimg.desktop" ]; - }; - }; + xdg.portal = { + enable = true; + extraPortals = with pkgs; [ xdg-desktop-portal-gtk ]; }; programs = { hyprland = {