Commit Graph

70 Commits

Author SHA1 Message Date
Donovan Glover
818f1f559d
meta: Move alacritty config to phone
I only use alacritty on the phone due to the superior touch support.
Touch support might be added to kitty later if someone is willing to
patch it. See: https://github.com/kovidgoyal/kitty/issues/5432
2024-08-11 14:08:23 -04:00
Donovan Glover
6c34cce882
treewide(nix): Remove duplicate attribute name usage
Found thanks to nixd showing different colors for these.
2024-08-10 20:55:46 -04:00
Donovan Glover
b74daeaeaf
desktop: Drop vagrant (again)
After having to use vagrant again after a while I've decided that it's
better to simply "do things the right way" the first time with the
declarative nature of Nix instead of trying to make install scripts
work.

Notably, the feedback loop between provisioning Vagrant boxes was
lacking compared to rebuilding on NixOS, and the virtual machine
frequently had to be destroyed and provisioned all over again, versus
having already built derivations with Nix.
2024-08-10 19:51:01 -04:00
Donovan Glover
2dba93e179
phone: Move xdg.desktopEntries inside config
Should fix nix flake check.
2024-08-09 19:27:16 -04:00
Donovan Glover
6e5c2c606b
xdg: Only hide desktop icons on phone
It turns out that doing this breaks thunar and possibly some other
stuff, so we'll only hide them on the PinePhone with Phosh.
2024-08-08 22:03:39 -04:00
Donovan Glover
502580b3e9
packages: Drop pinephone-toolkit
Edit /sys/class/leds/**/brightness directly instead.
2024-08-03 21:12:32 -04:00
Donovan Glover
1c668bde68
chore: Format with nix fmt
nixfmt-rfc-style collapses lists like these.
2024-08-03 15:27:04 -04:00
Donovan Glover
8ece3e2812
treewide: Format remaining files with nixfmt-rfc-style 2024-08-03 14:49:00 -04:00
Donovan Glover
19ceda95a8
phone: Limit dirty_ratio / dirty_background_ratio
Been running this for a few days now and it seems to make the phone
significantly slower under load but reduces the probability of hanging
and crashing by quite a bit.

Plan to try this later with maximum CPU frequency to see if high CPU
frequency still crashes the PinePhone.
2024-08-03 12:46:47 -04:00
Donovan Glover
f73e302f2e
chore: Fix nixd / statix errors
I'm okay with editing hardware-configuration.nix now that I understand
how it works.
2024-08-03 01:52:47 -04:00
Donovan Glover
07ea9018f9
phone: Drop gnome-maps
Was a pain to use on the PinePhone and slower than just using maps
in a web browser.
2024-08-01 16:24:19 -04:00
Donovan Glover
2adb6a38e4
phone: Replace gnome-sound-recorder with asak
Terminal-based sound recording aligns more with my use case here.
2024-07-28 21:50:04 -04:00
Donovan Glover
28c984c24b
phone: Add gnome maps config
Note that I actually prefer online maps since GNOME Maps is quite slow
on the PinePhone, making it a pain to use.
2024-07-28 14:44:55 -04:00
Donovan Glover
493a5c631d
phone: Drop xdg user dirs
Will instead have everything in $HOME since it's not planned to have a
lot of files on the device anyway.
2024-07-25 16:50:55 -04:00
Donovan Glover
1192d7a14b
phone: Remove unused packages
- mpv: No hardware acceleration makes it useless under phosh
- thunar: Viewport breaks when using non-English UI
- ncmpcpp: Phone screen is too small to show display
- papers: Gets cut off due to the 200% zoom and 1440x720 resolution
- geary: Not interested in storing emails on the phone
2024-07-24 15:22:50 -04:00
Donovan Glover
0652ba94ca
phone: Lower cpu frequency to 0.912 GHz
Previously the phone would often lock up when performing simple
operations like copying files during a remote nixos-rebuild.
2024-07-23 19:19:13 -04:00
Donovan Glover
a04be3defd
hardware: Suspend on power key press 2024-07-23 15:37:24 -04:00
Donovan Glover
e4d273cb6c
phone: Update package list
The "caerbannog" GTK-based pass program crashes and Phosh mobile
settings is no longer needed due to configuring dconf settings with nix.
2024-07-22 02:22:27 -04:00
Donovan Glover
47617c7c3a
desktop: Use vagrant with libvirtd
Sometimes it's necessary to spin up a virtual machine.

NixOS conveniently has libvirt support built-in, so virtualbox
isn't necessary.
2024-07-22 01:08:09 -04:00
Donovan Glover
016ed494e4
phone(dconf): Add caffeine quick setting
Necessary for when we want to use the phone without the screen turning
off after 1 minute.
2024-07-21 13:54:18 -04:00
Donovan Glover
12accb0619
phone(dconf): Limit idle delay to 1 minute
Might help with the phone turning on while pocketed.
2024-07-21 13:54:14 -04:00
Donovan Glover
a35c91057c
phone: Scale cpu frequency down 3 levels
Was crashing way too often with max frequency so hopefully having the
frequency slightly above half the maximum speed makes things more
stable.
2024-07-20 14:48:24 -04:00
Donovan Glover
bb510a6ac6
phone: Use maximum cpu frequency
Seems to be a bit more unstable but the performance difference is huge
enough that I'd rather run this than the minimum cpu frequency.

Battery life seems to be okay with around 3 hours of on-screen time and
low brightness. The massive increase in performance means that there's
much less time spent waiting for the phone, so the decrease in on-screen
time should be offset by how long you have to keep the phone on waiting
for it.
2024-07-19 18:30:25 -04:00
Donovan Glover
1b3637651a
phone(dconf): Add night light quick setting 2024-07-19 18:27:00 -04:00
Donovan Glover
6a345009f6
chore: Fix formatting 2024-07-19 11:04:11 -04:00
Donovan Glover
086a70107b
phone(dconf): Don't hide non-mobile friendly apps
Easier when all the apps are always available.
2024-07-18 20:47:25 -04:00
Donovan Glover
ce67ffbf73
meta: Rename homeManagerModules attribute to homeModules
This fixes an issue where previously homeManagerModules would be an
unknown flake output. Note that this change is a part of Nix 2.22.3
but not Nix 2.23.3.
2024-07-18 19:43:11 -04:00
Donovan Glover
7fe0596d90
phone: Only disable systemd-boot on aarch64
This is necessary since the boot process is handled by mobile-nixos.

Note that the implementation here should allow us to move aarch64
differences out of the flake.nix and simplify nixosConfigurations
again long-term.
2024-07-18 17:50:19 -04:00
Donovan Glover
d092c5f416
meta: Migrate phosh settings to phone config
Currently there are too many serious issues to realistically use
Hyprland on the PinePhone, and Phosh supports most of the features
we need out of the box anyway, so it makes sense to use that full-time
over trying to make something else work.
2024-07-18 17:10:53 -04:00
Donovan Glover
40ea3c1b3c
phone(dconf): Suspend on battery only
Suspend *significantly* increases the battery life of the phone at the
cost of not receiving internet-based notifications.
2024-07-18 13:03:29 -04:00
Donovan Glover
345dbe9ce5
phone(dconf): Add Japanese keyboard to squeekboard 2024-07-18 00:03:37 -04:00
Donovan Glover
41deea0272
phone(dconf): Enable suspend in dropdown menu 2024-07-18 00:02:32 -04:00
Donovan Glover
d6d298491a
phone(dconf): Use gallery without sidebar for eog
Makes the image viewer work well out-of-the-box.
2024-07-17 22:46:35 -04:00
Donovan Glover
a8856e9334
phone(dconf): Show battery percentage 2024-07-17 22:46:02 -04:00
Donovan Glover
57a276ff39
phone(dconf): Shuffle keypad 2024-07-17 22:45:40 -04:00
Donovan Glover
6f74c76d2d
chore: Improve readability of phone configuration 2024-07-17 19:07:12 -04:00
Donovan Glover
9e75db68b0
phone: Use alacritty as the terminal of choice
Kitty doesn't have touch support and gnome-console is pretty slow with
broken text rendering with fractional scaling, so alacritty is the best
option we have here.
2024-07-17 15:29:59 -04:00
Donovan Glover
86a786cf1f
phone: Move phone-specific config out of system 2024-07-17 06:49:59 -04:00
Donovan Glover
2cd3aaf869
phone: Remove useless home-manager modules from desktop 2024-07-17 06:47:15 -04:00
Donovan Glover
591747784e
phone: Move containers config out of container module
We should explicitly enable it instead of conditionally disable it.
2024-07-17 05:55:17 -04:00
Donovan Glover
44cf7e6832
meta: Move phone-specific apps to host
Might turn this into a module later and use the standard
`module.enable = true` syntax.
2024-07-16 12:27:41 -04:00
Donovan Glover
7a95a8c4fd
overlays(hyprland): Drop keyboard focus patch
Would rather not have to worry about compiling Hyprland if I can avoid
it since I've already compiled it so many times already.
2024-07-15 17:02:27 -04:00
Donovan Glover
9ce417830e
desktop: Don't bloat with phone conditionals
Should make things easier to manage now that we've technically tried
Hyprland with gestures but prefer Phosh for usability.
2024-07-15 11:37:31 -04:00
Donovan Glover
3ef29d27c2
meta: Add back hyprland to phone
Will be trying this again since Hyprland offers a substantial
performance improvement over Phosh and hardware accelerated videos
are broken anyway with the lower cpu speed.
2024-07-14 21:28:40 -04:00
Donovan Glover
051c903154
meta: Move phosh config to specialization
This is part of attempting to use Hyprland over Phosh (again) for
more control over things.
2024-07-14 21:12:03 -04:00
Donovan Glover
23b970e750
phone: Use custom backgrounds with phosh
Seems to make using phosh more interesting than without, although I'd
like to try using Hyprland again instead.
2024-07-09 23:46:19 -04:00
Donovan Glover
5c9f94c4ce
phone: Don't build unnecessary packages 2024-07-08 14:07:23 -04:00
Donovan Glover
99dcd2d2be
laptop: Enable keyboard 2024-07-05 17:41:55 -04:00
Donovan Glover
09fe14d21d
phone: Remove fcitx
Doesn't work in Phosh unfortunately. Hyprland would be ideal if we had
time to make a keyboard that worked.
2024-06-30 13:48:04 -04:00
Donovan Glover
3f25b52168
Revert "phone: Enable irqbalance"
Phone runs much, much cooler without irqbalance enabled and `cat
/sys/class/thermal/thermal_zone0/temp` often reports a difference of
at least 10000, such as from 46897 to 36367. In other words, the phone
seems to be consistently 20 degrees fahrenheit cooler.
2024-06-29 07:23:58 -04:00