Fixed sway, waybar, xdg and pass

This commit is contained in:
Andrea Ciceri 2021-10-01 00:43:42 +02:00
parent 25fa736dff
commit f138a25ad6
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
10 changed files with 65 additions and 65 deletions

View file

@ -46,10 +46,6 @@ in
time.timeZone = "Europe/Rome";
location.provider = "geoclue2";
xdg.portal.enable = true; # is this needed?
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
xdg.portal.gtkUsePortal = true;
nix = {
autoOptimiseStore = true;
gc.automatic = true;

11
profiles/xdg/default.nix Normal file
View file

@ -0,0 +1,11 @@
{
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
xdg.portal.gtkUsePortal = true;
services.pipewire.enable = true;
environment.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
XDG_CURRENT_DESKTOP = "sway"; # https://github.com/emersion/xdg-desktop-portal-wlr/issues/20
XDG_SESSION_TYPE = "wayland"; # https://github.com/emersion/xdg-desktop-portal-wlr/pull/11
};
}