feat: Start Phosh with proper default settings
This commit is contained in:
committed by
Hunter Halloran
parent
6a316489f0
commit
0e5c993a26
32
sw-kiosk.nix
32
sw-kiosk.nix
@@ -11,7 +11,10 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.displayManager = {
|
services.displayManager = {
|
||||||
gdm.enable = true;
|
gdm = {
|
||||||
|
enable = true;
|
||||||
|
autoSuspend = false;
|
||||||
|
};
|
||||||
autoLogin = {
|
autoLogin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
user = "engr-ugaif";
|
user = "engr-ugaif";
|
||||||
@@ -96,6 +99,10 @@
|
|||||||
"/run/current-system/sw/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
|
"/run/current-system/sw/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}/glib-2.0/schemas";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.etc."machine-info".text = ''
|
||||||
|
CHASSIS=handset
|
||||||
|
'';
|
||||||
|
|
||||||
systemd.user.services."force-osk" = {
|
systemd.user.services."force-osk" = {
|
||||||
description = "Force the OSK to Enable";
|
description = "Force the OSK to Enable";
|
||||||
wantedBy = [ "chromium-kiosk.service" ];
|
wantedBy = [ "chromium-kiosk.service" ];
|
||||||
@@ -112,6 +119,26 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.user.services."force-input-sources" = {
|
||||||
|
description = "Force the Gsettings Input Sources";
|
||||||
|
wantedBy = [ "chromium-kiosk.service" ];
|
||||||
|
partOf = [ "chromium-kiosk.service" ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
ExecStartPre = ''
|
||||||
|
/run/current-system/sw/bin/sleep 5
|
||||||
|
'';
|
||||||
|
ExecStart = ''
|
||||||
|
/run/current-system/sw/bin/dconf reset /org/gnome/desktop/input-sources/sources
|
||||||
|
'';
|
||||||
|
ExecStartPost = ''
|
||||||
|
/run/current-system/sw/bin/dconf reset /org/gnome/desktop/mru-sources/sources
|
||||||
|
'';
|
||||||
|
|
||||||
|
Type = "simple";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
systemd.user.services."chromium-kiosk" = {
|
systemd.user.services."chromium-kiosk" = {
|
||||||
description = "Chromium kiosk";
|
description = "Chromium kiosk";
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
@@ -120,7 +147,7 @@
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.chromium}/bin/chromium \
|
${pkgs.chromium}/bin/chromium \
|
||||||
--enable-features=UseOzonePlatform,TouchpadOverscrollHistoryNavigation \
|
--enable-features=UseOzonePlatform,TouchpadOverscrollHistoryNavigation,PullToRefresh \
|
||||||
--ozone-platform=wayland \
|
--ozone-platform=wayland \
|
||||||
--kiosk \
|
--kiosk \
|
||||||
--start-fullscreen \
|
--start-fullscreen \
|
||||||
@@ -141,6 +168,7 @@
|
|||||||
IdleAction="ignore";
|
IdleAction="ignore";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
networking.networkmanager.enable = false;
|
networking.networkmanager.enable = false;
|
||||||
networking.wireless = {
|
networking.wireless = {
|
||||||
|
|||||||
Reference in New Issue
Block a user