mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-25 15:18:38 +01:00
a629f92827
This was causing a lot of issues unfortunately presumably due to things not working with the aarch64 PinePhone system. Random errors like "expected string 'D'" were common and I'd rather use a separate flake to make things easier to debug and keep evaluation times to a minimum.
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
#
|
|
# 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.
|
|
#
|
|
{ config, lib, pkgs, options, ... }:
|
|
|
|
{
|
|
mobile.beautification = {
|
|
silentBoot = lib.mkDefault true;
|
|
splash = lib.mkDefault true;
|
|
};
|
|
|
|
services.xserver.desktopManager.phosh = {
|
|
enable = true;
|
|
group = "users";
|
|
};
|
|
|
|
programs.calls.enable = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
chatty # IM and SMS
|
|
epiphany # Web browser
|
|
gnome-console # Terminal
|
|
megapixels # Camera
|
|
];
|
|
|
|
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.
|
|
'';
|
|
}
|
|
];
|
|
}
|