moby: scale display to 150%

This commit is contained in:
colin 2022-05-31 16:12:29 -07:00
parent 2135b4569f
commit 14e7db3eae
4 changed files with 28 additions and 68 deletions

View File

@ -1,64 +0,0 @@
# 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

@ -4,5 +4,23 @@
enable = true;
user = "colin";
group = "users";
# phocConfig = {
# # find default outputs by catting /etc/phosh/phoc.ini
# outputs.DSI-1 = {
# scale = 1.50; # nixpkgs doesn't allow floats for this value
# };
# };
phocConfig = ''
[core]
xwayland = false
[output:DSI-1]
scale = 1.5
[cursor]
theme = default
'';
};
}

View File

@ -129,9 +129,13 @@
};
};
phosh = {
# TODO: figure out where the display zoom = 1.5 is stored
# phosh handles scaling via /etc/phosh/phoc.ini
# "org/gnome/desktop/interface" = {
# text-scaling-factor = 1.5;
# # text-scaling-factor = 1.5;
# scaling-factor = 1.5;
# };
# "org/gnome/mutter" = {
# experimental-features [ "scale-monitor-framebuffer" ];
# };
};
}).${gui};

View File

@ -2,8 +2,7 @@
{
imports = [
./../../helpers/universal
# ./../../helpers/gui/phosh.nix
./../../helpers/gui/phosh-mhuesh.nix
./../../helpers/gui/phosh.nix
# ./../../helpers/gui/plasma-mobile.nix
# ./../../helpers/gui/gnome.nix
];
@ -51,4 +50,7 @@
environment.etc."machine-info".text = ''
CHASSIS="handset"
'';
# enable rotation sensor
hardware.sensor.iio.enable = true;
}