2021-01-11 17:26:18 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
{
|
|
|
|
imports = [ ./sway-stubs.nix ];
|
2021-01-11 17:26:18 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
# Enables the default bar configuration
|
|
|
|
home.stateVersion = "20.09";
|
2021-01-11 17:26:18 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
package = null;
|
2023-11-09 18:19:45 +00:00
|
|
|
checkConfig = false;
|
2021-09-26 09:08:45 +00:00
|
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
2021-01-11 17:26:18 +00:00
|
|
|
};
|
2021-09-26 09:08:45 +00:00
|
|
|
|
|
|
|
assertions = [{
|
|
|
|
assertion =
|
|
|
|
!lib.elem config.wayland.windowManager.sway.config.bars [ [ { } ] [ ] ];
|
|
|
|
message =
|
|
|
|
"The default Sway bars configuration should be set for this test (sway-null-package) to work.";
|
|
|
|
}];
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/sway/config
|
2022-07-07 17:03:58 +00:00
|
|
|
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
|
2021-09-26 09:08:45 +00:00
|
|
|
${./sway-null-package.conf}
|
|
|
|
'';
|
2021-01-11 17:26:18 +00:00
|
|
|
}
|