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,
|
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 {
|
||||||
|
|
Loading…
Reference in a new issue