fix(droid): get build to work again with tmux
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-23 05:02:06 -05:00
parent fd1ae4fa32
commit 5dd3f3f4e6

View file

@ -4,11 +4,15 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (lib) attrValues elemAt mkIf mkOption types; inherit (lib) attrValues elemAt hasAttr mkIf mkOption types;
cfg = config.programs.tmux; cfg = config.programs.tmux;
firstUser = elemAt (attrValues config.home-manager.users) 0; # Support NixOnDroid
firstUser =
if hasAttr "users" config.home-manager
then elemAt (attrValues config.home-manager.users) 0
else config.home-manager.config;
in { in {
options.programs.tmux = { options.programs.tmux = {
enableCustomConf = mkOption { enableCustomConf = mkOption {