mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
modules/android-integration: termux-wake-lock and termux-wake-unlock
This commit is contained in:
parent
b195fa0b15
commit
438cf8c620
6 changed files with 100 additions and 6 deletions
|
|
@ -62,6 +62,27 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
termux-wake-lock.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = "true";
|
||||
description = lib.mdDoc ''
|
||||
Provide a `termux-wake-lock` command
|
||||
that tones down Android power saving measures.
|
||||
This is the same action that's available from the notification.
|
||||
'';
|
||||
};
|
||||
|
||||
termux-wake-unlock.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = "true";
|
||||
description = lib.mdDoc ''
|
||||
Provide a `termux-wake-unlock` command
|
||||
that undoes the effect of the `termux-wake-lock` one.
|
||||
'';
|
||||
};
|
||||
|
||||
xdg-open.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
|
|
@ -91,6 +112,8 @@ in
|
|||
(ifD cfg.termux-setup-storage.enable termux-tools.setup_storage) ++
|
||||
(ifD cfg.termux-open.enable termux-tools.open) ++
|
||||
(ifD cfg.termux-open-url.enable termux-tools.open_url) ++
|
||||
(ifD cfg.termux-wake-lock.enable termux-tools.wake_lock) ++
|
||||
(ifD cfg.termux-wake-unlock.enable termux-tools.wake_unlock) ++
|
||||
(ifD cfg.xdg-open.enable termux-tools.xdg_open) ++
|
||||
(ifD cfg.unsupported.enable termux-tools.out);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue