mirror of
https://github.com/nix-community/home-manager
synced 2024-12-20 10:03:35 +00:00
5c639ff68a
Also add associated tests for both Sway and i3. PR #1231
37 lines
923 B
Nix
37 lines
923 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
wayland.windowManager.sway = {
|
|
enable = true;
|
|
|
|
config = {
|
|
focus.followMouse = false;
|
|
menu = "${pkgs.dmenu}/bin/dmenu_run";
|
|
bars = [ ];
|
|
};
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
dmenu = super.dmenu // { outPath = "@dmenu@"; };
|
|
rxvt-unicode-unwrapped = super.rxvt-unicode-unwrapped // {
|
|
outPath = "@rxvt-unicode-unwrapped@";
|
|
};
|
|
sway-unwrapped =
|
|
pkgs.runCommandLocal "dummy-sway-unwrapped" { version = "1"; }
|
|
"mkdir $out";
|
|
swaybg = pkgs.writeScriptBin "dummy-swaybg" "";
|
|
xwayland = pkgs.writeScriptBin "xwayland" "";
|
|
})
|
|
];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/sway/config
|
|
assertFileContent home-files/.config/sway/config \
|
|
${./sway-followmouse-legacy-expected.conf}
|
|
'';
|
|
};
|
|
}
|