1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-14 21:11:08 +01:00

sway, bspwm: add extraConfigEarly (#2847)

This commit is contained in:
Matthew Toohey 2022-08-27 00:09:46 -04:00 committed by GitHub
parent 8e4220e6c6
commit d89bdff445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 99 additions and 67 deletions

View file

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
imports = [ ./sway-stubs.nix ];
wayland.windowManager.sway = {
enable = true;
package = config.lib.test.mkStubPackage { outPath = "@sway@"; };
# overriding findutils causes issues
config.menu = "${pkgs.dmenu}/bin/dmenu_run";
config.bindkeysToCode = true;
extraConfigEarly = ''
import $HOME/.cache/wal/colors-sway
'';
extraConfig = ''
exec_always pkill flashfocus; flasfocus &
'';
};
nmt.script = ''
assertFileExists home-files/.config/sway/config
assertFileContent $(normalizeStorePaths home-files/.config/sway/config) \
${./sway-bindkeys-to-code-and-extra-config.conf}
'';
}