sway: lift portal/menu reset into polyunfill.nix
This commit is contained in:
parent
7ecebd7521
commit
55a6c828f2
|
@ -23,6 +23,11 @@
|
||||||
# see: <repo:nixos/nixpkgs:nixos/modules/config/xdg/icons.nix>
|
# see: <repo:nixos/nixpkgs:nixos/modules/config/xdg/icons.nix>
|
||||||
environment.sessionVariables.XCURSOR_PATH = lib.mkForce [];
|
environment.sessionVariables.XCURSOR_PATH = lib.mkForce [];
|
||||||
|
|
||||||
|
# disable nixos' portal module, otherwise /share/applications gets linked into the system and complicates things (sandboxing).
|
||||||
|
# instead, i manage portals myself via the sane.programs API (e.g. sane.programs.xdg-desktop-portal).
|
||||||
|
xdg.portal.enable = false;
|
||||||
|
xdg.menus.enable = false; #< links /share/applications, and a bunch of other empty (i.e. unused) dirs
|
||||||
|
|
||||||
# xdg.autostart.enable defaults to true, and links /etc/xdg/autostart into the environment, populated with .desktop files.
|
# xdg.autostart.enable defaults to true, and links /etc/xdg/autostart into the environment, populated with .desktop files.
|
||||||
# see: <repo:nixos/nixpkgs:nixos/modules/config/xdg/autostart.nix>
|
# see: <repo:nixos/nixpkgs:nixos/modules/config/xdg/autostart.nix>
|
||||||
# .desktop files are a questionable way to autostart things: i generally prefer a service manager for that.
|
# .desktop files are a questionable way to autostart things: i generally prefer a service manager for that.
|
||||||
|
|
|
@ -262,12 +262,6 @@ in
|
||||||
systemd.user.services."pipewire".wantedBy = [ "graphical-session.target" ];
|
systemd.user.services."pipewire".wantedBy = [ "graphical-session.target" ];
|
||||||
|
|
||||||
programs.xwayland.enable = cfg.config.xwayland;
|
programs.xwayland.enable = cfg.config.xwayland;
|
||||||
|
|
||||||
# disable nixos' portal module, otherwise /share/applications gets linked into the system and complicates things (sandboxing).
|
|
||||||
# instead, i manage portals myself via the sane.programs API (e.g. sane.programs.xdg-desktop-portal).
|
|
||||||
xdg.portal.enable = false;
|
|
||||||
xdg.menus.enable = false; #< links /share/applications, and a bunch of other empty (i.e. unused) dirs
|
|
||||||
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user