fix(droid): get build to work again with tmux
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
fd1ae4fa32
commit
5dd3f3f4e6
1 changed files with 6 additions and 2 deletions
|
@ -4,11 +4,15 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) attrValues elemAt mkIf mkOption types;
|
||||
inherit (lib) attrValues elemAt hasAttr mkIf mkOption types;
|
||||
|
||||
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 {
|
||||
options.programs.tmux = {
|
||||
enableCustomConf = mkOption {
|
||||
|
|
Loading…
Reference in a new issue