Commit Graph

112 Commits

Author SHA1 Message Date
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
Donovan Glover
c3517fb7bc
phone: Enable irqbalance
Supposedly increases battery life.
2024-06-29 05:48:01 -04:00
Donovan Glover
bbed73b954
phone: Remove thunar
portfolio-filemanager is more usable on mobile.
2024-06-28 15:00:00 -04:00
Donovan Glover
a9e27e260b
phone: Use minimum cpu clock rate
Fixes an issue where the phone would consistently crash all the time
when performing slightly intensive tasks.
2024-06-28 13:55:24 -04:00
Donovan Glover
299a5e0bd6
Revert "meta: Add attempt at using gnome-mobile" 2024-06-27 23:02:38 -04:00
Donovan Glover
961c2f1b62
meta: Add attempt at using gnome-mobile
This was my attempt at using GNOME Mobile. It works inside the x86_64
virtual machine but fails when reaching "Started Display Manager" on the
actual device.
2024-06-27 22:56:41 -04:00
Donovan Glover
c28411e747
phone: Explicitly disable pipewire
Somehow pipewire got enabled by something else in the config. By
explicitly disabling it, we're able to make phone calls work again.
2024-06-26 23:57:03 -04:00
Donovan Glover
99f6ba7e87
phone: Drop LIBGL_ALWAYS_SOFTWARE
This was used to get kitty to work however GNOME terminal is much faster
than kitty on the PinePhone and has touch support, making it superior
for daily use.
2024-06-24 20:13:36 -04:00
Donovan Glover
ebaaa235ad
phone: Only include phinger-cursors overlay
We don't need to overlay neovim since we aren't using kitty on the
phone.
2024-06-24 20:12:05 -04:00
Donovan Glover
939cdb90e9
phone: Only import needed home-manager modules
Now that hyprland is confirmed to be a no-go for the phone, this commit
begins making the system closure smaller.
2024-06-24 19:10:54 -04:00
Donovan Glover
e36fcaf2c6
hardware: Drop phone configuration
We'll handle this directly in the phone configuration.nix instead since
it's simplified now.
2024-06-24 16:22:08 -04:00
Donovan Glover
8af4d55361
phone: Update device UUIDs
Necessary since we had to reinstall Mobile NixOS due to being unable to
recover from a chroot.
2024-06-24 13:00:09 -04:00
Donovan Glover
31ab36fe78
phone: Add mullvad support by disabling checkReversePath
`networking.firewall.checkReversePath` was being set to "loose" from
Mullvad VPN, which was causing an issue with the kernel used by the
PinePhone with Mobile NixOS.

By changing this option to `false`, we get rid of the "This kernel does
not support rpfilter" error, which seems to be inaccurate due to the
result of `sysctl -a | grep \\.rp_filter` on the phone being consistent
with the result on the laptop.
2024-06-21 20:34:09 -04:00
Donovan Glover
9bd004c3a8
nix: Avoid IFD by importing base16 scheme directly
This fixes an issue where previously the derivation had to be evaluated
before importing the base16 scheme, thus causing `nix flake check` to
fail when multi-platform support was added.

See: https://github.com/NixOS/nix/issues/4265
2024-06-20 21:58:16 -04:00
Donovan Glover
b80f3f2340
meta: Use standard hosts directory
This makes sense now that we have multiple hosts in the same flake.
2024-06-20 21:34:57 -04:00
Donovan Glover
a2886940f4
nix: Move hosts to src
Might change this later once home-manager and nixos modules are
separated.
2023-06-12 13:26:54 -04:00
Donovan Glover
43a07cc8d9
treewide: Switch from alejandra to nixpkgs-fmt
Neither nixfmt nor alejandra support the "standard" way to syntax
highlight multi-line strings in Nix, so nixpkgs-fmt is the only viable
solution.
2023-06-11 09:37:27 -04:00
Donovan Glover
3878a636d9
nix: Remove unused argument 2023-06-06 07:14:46 -04:00
Donovan Glover
a0dae2344d
nix: Use hosts directory
This may be useful if I want to try NixOS on another host in the future.
2023-06-05 21:23:28 -04:00
Donovan Glover
ad5f9aa991
Remove hosts directory for now
A hosts directory may be useful later.
2023-05-11 19:31:35 -04:00
Donovan Glover
2c9327b039
nix: Use hosts directory
This should make it easier to derive multiple output machines from the
same input flake.nix.
2023-05-09 20:13:37 -04:00