All checks were successful
CI / Format Check (push) Successful in 2s
CI / Flake Check (push) Successful in 1m39s
CI / Evaluate Key Configurations (nix-builder) (push) Successful in 8s
CI / Evaluate Key Configurations (nix-desktop1) (push) Successful in 7s
CI / Evaluate Key Configurations (nix-laptop1) (push) Successful in 7s
CI / Evaluate Artifacts (installer-iso-nix-laptop1) (push) Successful in 14s
CI / Evaluate Artifacts (lxc-nix-builder) (push) Successful in 8s
CI / Build and Publish Documentation (push) Successful in 5s
79 lines
1.7 KiB
Nix
79 lines
1.7 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.athenix.sw.tablet-kiosk;
|
|
in
|
|
{
|
|
options.athenix.sw.tablet-kiosk = mkOption {
|
|
type = lib.types.submodule {
|
|
options = {
|
|
enable = mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
description = ''
|
|
Enable tablet kiosk mode with touch-optimized interface.
|
|
|
|
Includes:
|
|
- Phosh mobile desktop environment
|
|
- Chromium in fullscreen kiosk mode
|
|
- On-screen keyboard (Squeekboard)
|
|
- Auto-login and auto-start browser
|
|
- Touch gesture support
|
|
- Optimized for Surface Pro tablets
|
|
|
|
Recommended for: Surface tablets, touchscreen kiosks, interactive displays
|
|
'';
|
|
example = true;
|
|
};
|
|
|
|
kioskUrl = mkOption {
|
|
type = lib.types.str;
|
|
default = "https://ha.factory.uga.edu";
|
|
description = ''
|
|
URL to display in the kiosk browser on startup.
|
|
The browser will automatically navigate to this URL in fullscreen mode.
|
|
'';
|
|
example = "https://dashboard.example.com";
|
|
};
|
|
};
|
|
};
|
|
default = { };
|
|
description = "Tablet kiosk configuration (Phosh, touch interface).";
|
|
};
|
|
|
|
config = mkIf cfg.enable (mkMerge [
|
|
(import ./programs.nix {
|
|
inherit
|
|
config
|
|
lib
|
|
pkgs
|
|
inputs
|
|
;
|
|
})
|
|
(import ./services.nix {
|
|
inherit
|
|
config
|
|
lib
|
|
pkgs
|
|
inputs
|
|
;
|
|
})
|
|
(import ./gsettings.nix {
|
|
inherit
|
|
config
|
|
lib
|
|
pkgs
|
|
inputs
|
|
;
|
|
})
|
|
]);
|
|
}
|