examples/phosh: detect misuse when no user configured
# NOTE: this file and any it imports **have** to be safe to import from
# an end-user's config.
#
-{ pkgs, ... }:
+{ config, pkgs, options, ... }:
{
services.xserver.desktopManager.phosh = {
];
hardware.sensor.iio.enable = true;
+
+ assertions = [
+ { assertion = options.services.xserver.desktopManager.phosh.user.isDefined;
+ message = ''
+ `services.xserver.desktopManager.phosh.user` not set.
+ When importing the phosh configuration in your system, you need to set `services.xserver.desktopManager.phosh.user` to the username of the session user.
+ '';
+ }
+ ];
}
