mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 18:59:44 +01: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>
22 lines
649 B
Nix
22 lines
649 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";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/sway/config
|
|
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
|
|
${./sway-default.conf}
|
|
|
|
assertFileExists home-files/.config/systemd/user/sway-session.target
|
|
assertFileContent home-files/.config/systemd/user/sway-session.target \
|
|
${./sway-default.target}
|
|
'';
|
|
}
|