diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-04-03 11:59:20 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-04-03 11:59:20 +0200 |
commit | 475a406c487f5d1200651476c1243bf8d7884966 (patch) | |
tree | 27bc89e46ad43dd8f8190297cad16f352c031177 /modules/user | |
parent | 67920556b4709937045f061e151d2f6d56bc8a9a (diff) |
modules/devhell/profiles/services: conditionally include i3-auto-layout
i3-auto-layout is not yet in nixos-unstable unfortunately, so it triggers an eval error on hydra. Temporarily hack around it by only including it in extraPackages if pkgs contains the package in question (i. e. if rebuilding from master locally). cc @devhell
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/devhell/profiles/services.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/user/devhell/profiles/services.nix b/modules/user/devhell/profiles/services.nix index b2c63fd4..aa6d21ca 100644 --- a/modules/user/devhell/profiles/services.nix +++ b/modules/user/devhell/profiles/services.nix @@ -78,8 +78,9 @@ in { services.xserver.windowManager.i3 = { enable = true; package = pkgs.i3-gaps; - extraPackages = with pkgs; [ polybar i3status-rust i3blocks-gaps - i3-auto-layout rofi ]; + extraPackages = with pkgs; [ polybar i3status-rust i3blocks-gaps rofi ] + ++ lib.optional (pkgs ? i3-auto-layout) [ pkgs.i3-auto-layout ]; + # FIXME: lib.optional construct can be removed if i3-auto-layout is in unstable }; services.journald.extraConfig = '' |