fork/home-manager

git clone https://git.julia.blue/fork/home-manager

oxalicasway: import dbus env vars and explicitly specify them (#3031)25a99483

master
693 B27 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  imports = [ ./sway-stubs.nix ];
5
6  # Enables the default bar configuration
7  home.stateVersion = "20.09";
8
9  wayland.windowManager.sway = {
10    enable = true;
11    package = null;
12    config.menu = "${pkgs.dmenu}/bin/dmenu_run";
13  };
14
15  assertions = [{
16    assertion =
17      !lib.elem config.wayland.windowManager.sway.config.bars [ [ { } ] [ ] ];
18    message =
19      "The default Sway bars configuration should be set for this test (sway-null-package) to work.";
20  }];
21
22  nmt.script = ''
23    assertFileExists home-files/.config/sway/config
24    assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
25      ${./sway-null-package.conf}
26  '';
27}