2021-01-11 18:26:18 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
{
|
|
|
|
imports = [ ./sway-stubs.nix ];
|
2021-01-11 18:26:18 +01:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
# Enables the default bar configuration
|
|
|
|
home.stateVersion = "20.09";
|
2021-01-11 18:26:18 +01:00
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
wayland.windowManager.sway = {
|
|
|
|
enable = true;
|
|
|
|
package = null;
|
2023-11-09 19:19:45 +01:00
|
|
|
checkConfig = false;
|
2021-09-26 11:08:45 +02:00
|
|
|
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
|
2021-01-11 18:26:18 +01:00
|
|
|
};
|
2021-09-26 11:08:45 +02: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 19:03:58 +02:00
|
|
|
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
|
2021-09-26 11:08:45 +02:00
|
|
|
${./sway-null-package.conf}
|
|
|
|
'';
|
2021-01-11 18:26:18 +01:00
|
|
|
}
|