sxmo: make an option with which to configure noidle
This commit is contained in:
@@ -115,6 +115,11 @@ in
|
|||||||
e.g. SXMO_UNLOCK_IDLE_TIME or SXMO_VOLUME_BUTTON.
|
e.g. SXMO_UNLOCK_IDLE_TIME or SXMO_VOLUME_BUTTON.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
sane.gui.sxmo.noidle = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "inhibit lock-on-idle and screenoff-on-idle";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkMerge [
|
config = lib.mkMerge [
|
||||||
@@ -200,7 +205,7 @@ in
|
|||||||
KEYBOARD = lib.mkDefault (if cfg.keyboard == "wvkbd" then "wvkbd-mobintl" else cfg.keyboard);
|
KEYBOARD = lib.mkDefault (if cfg.keyboard == "wvkbd" then "wvkbd-mobintl" else cfg.keyboard);
|
||||||
} // cfg.settings;
|
} // cfg.settings;
|
||||||
|
|
||||||
sane.user.fs.".cache/sxmo/sxmo.noidle" = sane-lib.fs.wantedText "";
|
sane.user.fs.".cache/sxmo/sxmo.noidle" = lib.mkIf cfg.noidle (sane-lib.fs.wantedText "");
|
||||||
|
|
||||||
|
|
||||||
## greeter
|
## greeter
|
||||||
|
Reference in New Issue
Block a user