fork/home-manager

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

Matthew Tooheysway, bspwm: add extraConfigEarly (#2847)d89bdff4

master
681 B25 linesraw
1{ config, lib, pkgs, ... }:
2
3{
4  imports = [ ./sway-stubs.nix ];
5
6  wayland.windowManager.sway = {
7    enable = true;
8    package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
9    # overriding findutils causes issues
10    config.menu = "${pkgs.dmenu}/bin/dmenu_run";
11    config.bindkeysToCode = true;
12    extraConfigEarly = ''
13      import $HOME/.cache/wal/colors-sway
14    '';
15    extraConfig = ''
16      exec_always pkill flashfocus; flasfocus &
17    '';
18  };
19
20  nmt.script = ''
21    assertFileExists home-files/.config/sway/config
22    assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
23      ${./sway-bindkeys-to-code-and-extra-config.conf}
24  '';
25}