2022-10-11 08:21:08 +03:00
|
|
|
#
|
|
|
|
# This file represents safe opinionated defaults for a basic Phosh system.
|
|
|
|
#
|
|
|
|
# NOTE: this file and any it imports **have** to be safe to import from
|
|
|
|
# an end-user's config.
|
|
|
|
#
|
2022-10-13 04:29:35 +03:00
|
|
|
{ config, lib, pkgs, options, ... }:
|
2022-10-11 08:21:08 +03:00
|
|
|
|
|
|
|
{
|
2022-10-13 04:29:35 +03:00
|
|
|
mobile.beautification = {
|
|
|
|
silentBoot = lib.mkDefault true;
|
|
|
|
splash = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
|
2022-10-11 08:21:08 +03:00
|
|
|
services.xserver.desktopManager.phosh = {
|
|
|
|
enable = true;
|
|
|
|
group = "users";
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.calls.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
chatty # IM and SMS
|
2022-10-11 08:21:31 +03:00
|
|
|
epiphany # Web browser
|
2022-10-30 14:24:46 +03:00
|
|
|
gnome-console # Terminal
|
2022-10-11 08:21:08 +03:00
|
|
|
megapixels # Camera
|
|
|
|
];
|
|
|
|
|
|
|
|
hardware.sensor.iio.enable = true;
|
2022-10-13 01:41:50 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
2022-10-11 08:21:08 +03:00
|
|
|
}
|