forked from Bun/nixos-config
Move xdg portals into home-manager
This commit is contained in:
parent
f30a5824a5
commit
099bcb150b
4 changed files with 13 additions and 8 deletions
|
@ -4,6 +4,7 @@
|
||||||
./clipman
|
./clipman
|
||||||
./kanshi
|
./kanshi
|
||||||
./mako
|
./mako
|
||||||
|
./portals
|
||||||
./rofi
|
./rofi
|
||||||
./swayidle
|
./swayidle
|
||||||
./swaylock
|
./swaylock
|
||||||
|
|
12
modules/home/wms/programs/portals/default.nix
Normal file
12
modules/home/wms/programs/portals/default.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
xdg.portal = {
|
||||||
|
enable = config.home.desktop.enable;
|
||||||
|
configPackages = config.xdg.portal.extraPortals;
|
||||||
|
xdgOpenUsePortal = true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,7 +4,6 @@
|
||||||
./displaymanager
|
./displaymanager
|
||||||
./keyd
|
./keyd
|
||||||
./libvirtd
|
./libvirtd
|
||||||
./portals
|
|
||||||
./snowflake
|
./snowflake
|
||||||
./ssh
|
./ssh
|
||||||
./tlp
|
./tlp
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
{
|
|
||||||
xdg.portal.extraPortals = with pkgs; lib.mkIf config.system.desktop.enable [
|
|
||||||
xdg-desktop-portal-gnome
|
|
||||||
xdg-desktop-portal-wlr
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue