mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 02:23:16 +00:00
0144ac418e
* sway: add support for XDG autostart using systemd Using the option wayland.windowManager.sway.systemd.xdgAutostart, users can now choose to start applications present in $XDG_CONFIG_HOME/autostart when starting their sway session. This change also renames wayland.windowManager.sway.systemdIntegration to wayland.windowManager.sway.systemd.enable; Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net> * sway: add Scrumplex to maintainers Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net> --------- Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
20 lines
533 B
Nix
20 lines
533 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ./sway-stubs.nix ];
|
|
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
|
|
# overriding findutils causes issues
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
|
|
systemd.xdgAutostart = true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/systemd/user/sway-session.target
|
|
assertFileContent home-files/.config/systemd/user/sway-session.target \
|
|
${./sway-systemd-autostart.target}
|
|
'';
|
|
}
|