move portal stuff into wm/

This commit is contained in:
Adithya 2024-03-06 22:33:11 +05:30
parent 5c99a9b471
commit 644dae9bf6
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 21 additions and 21 deletions

View file

@ -1,8 +1,4 @@
{ config, pkgs, ... }:
let
hyprland = config.wayland.windowManager.hyprland.finalPackage;
in
{
_: {
imports = [ ./programs ./services ./wm ./gtk.nix ./persistence.nix ];
home.stateVersion = "23.11";
@ -21,21 +17,6 @@ in
"x-scheme-handler/tg" = [ "org.telegram.desktop.desktop" ];
};
};
portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
(xdg-desktop-portal-hyprland.override { inherit hyprland; })
];
config = {
common = {
default = [ "gtk" ];
};
};
configPackages = [ hyprland ];
};
userDirs.enable = true;
desktopEntries."nixos-manual" = {

View file

@ -1,6 +1,25 @@
{ ... }: {
{ config, pkgs, ... }:
let
hyprland = config.wayland.windowManager.hyprland.finalPackage;
in
{
imports = [
./hyprland
./addon
];
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-gnome
(xdg-desktop-portal-hyprland.override { inherit hyprland; })
];
config = {
common = {
default = [ "gtk" ];
};
};
configPackages = [ hyprland ];
};
}