moby: try a slight variant of phosh

This commit is contained in:
colin 2022-05-30 14:56:31 -07:00
parent e0f641fdf4
commit ca5fa0839c
2 changed files with 73 additions and 1 deletions

View File

@ -0,0 +1,64 @@
# source: https://github.com/NixOS/mobile-nixos/blob/master/examples/phosh/configuration.nix
# source: https://github.com/mhuesch/pinephone-mobile-nixos-flake-example/blob/main/configuration-pinephone.nix
{ pkgs, ... }:
{
services.xserver.desktopManager.phosh = {
enable = true;
user = "colin";
group = "users";
};
programs.calls.enable = true;
hardware.sensor.iio.enable = true;
environment.systemPackages = [
pkgs.chatty
pkgs.kgx
pkgs.megapixels
];
# # "desktop" environment configuration
# powerManagement.enable = true;
# hardware.opengl.enable = true;
# systemd.defaultUnit = "graphical.target";
# services.xserver.desktopManager.phosh = {
# enable = true;
# # user = "colin";
# group = "users";
# };
# # services.xserver.desktopManager.phosh.enable = true;
# systemd.services.phosh = {
# wantedBy = [ "graphical.target" ];
# serviceConfig = {
# ExecStart = "${pkgs.phosh}/bin/phosh";
# User = 1000;
# PAMName = "login";
# WorkingDirectory = "~";
# TTYPath = "/dev/tty7";
# TTYReset = "yes";
# TTYVHangup = "yes";
# TTYVTDisallocate = "yes";
# StandardInput = "tty-fail";
# StandardOutput = "journal";
# StandardError = "journal";
# UtmpIdentifier = "tty7";
# UtmpMode = "user";
# Restart = "always";
# };
# };
# services.xserver.desktopManager.gnome.enable = true;
# # unpatched gnome-initial-setup is partially broken in small screens
# services.gnome.gnome-initial-setup.enable = false;
# #programs.phosh.enable = true;
}

View File

@ -3,7 +3,9 @@
imports = [
./../../helpers/universal
# ./../../helpers/gui/phosh.nix
./../../helpers/gui/plasma-mobile.nix
./../../helpers/gui/phosh-mhuesh.nix
# ./../../helpers/gui/plasma-mobile.nix
# ./../../helpers/gui/gnome.nix
];
# XXX colin: phosh doesn't work well with passwordless login
@ -43,4 +45,10 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "21.11"; # Did you read the comment?
# defined: https://www.freedesktop.org/software/systemd/man/machine-info.html
# XXX colin: not sure which, if any, software makes use of this
environment.etc."machine-info".text = ''
CHASSIS="handset"
'';
}