Commit Graph

112 Commits

Author SHA1 Message Date
Donovan Glover
6a31427b44
chore: simplify formatting 2024-10-11 14:29:37 -04:00
Donovan Glover
eac686339b
flake: drop usage of @attrs
Using @attrs for the flake was cool at first, but this doesn't actually
work if we want to use our nix-config inside NixOS containers due to how
`self` works.

Because of this, it's easier to simply ban @attrs altogether and use
`nix-config` for everything since it's possible to access *all* the
inputs of nix-config from itself instead of having to manually inherit
each input we want (which could be any of them).
2024-10-11 13:35:45 -04:00
Donovan Glover
4f9289a35c
meta: move mobile-nixos imports out of flake
This is part of making the flake easier to understand by separating
concerns a bit more.
2024-10-11 13:15:43 -04:00
Donovan Glover
60401813e6
meta: prefer isPhone over mkForce 2024-10-10 14:21:42 -04:00
Donovan Glover
7393e7c0d6
chore: Simplify
- Removed unused conditional
- Changed `attrValues` to `with` where possible
2024-09-09 13:25:18 -04:00
Donovan Glover
fc11acbe79
meta: Move phone config to separate module
Makes it possible to enable phone support for different devices in the
future.

Note that programs.man.generateCaches in home-manager is handled at the
system level to avoid having to later override it with mkForce.
2024-09-09 13:23:41 -04:00
Donovan Glover
5790f1bbde
system: Determine isPhone from programs.calls.enable
Removes the redundant phone option and enables the usage of isPhone in
other modules besides system without having to import it.
2024-09-09 11:52:08 -04:00
Donovan Glover
0b720603ba
phone: Move xdg config to home-manager modules 2024-09-08 21:23:49 -04:00
Donovan Glover
5df2225472
phone: Move pinephone video script to separate package
Now it's possible to use the video recording script outside of fish.
2024-09-08 19:29:34 -04:00
Donovan Glover
58e227efc0
phone: Move dconf config to dconf module 2024-09-08 19:09:10 -04:00
Donovan Glover
f8876167f0
phone: Move gtk config to gtk module
This is part of simplifying the phone module to make it as consistent
with the rest of the home-manager environment as possible.
2024-09-08 14:46:09 -04:00
Donovan Glover
9d93f39175
dconf(megapixels): Set postprocessor
Should fix an issue where the camera app would previously stop taking
photos on NixOS updates due to changed hashes.
2024-09-03 23:16:10 -04:00
Donovan Glover
fe3f38acdd
phosh: Handle background dimming at the package level
Should improve performance since we no longer depend on a background
gradient in CSS.
2024-09-03 22:35:57 -04:00
Donovan Glover
f163001035
phone: Update favorite applications list 2024-09-01 20:03:22 -04:00
Donovan Glover
9d15ab2f68
chore: Fix formatting 2024-09-01 19:44:17 -04:00
Donovan Glover
f113c763ea
treewide: Drop remaining usage of inherit (pkgs) 2024-09-01 18:29:27 -04:00
Donovan Glover
80794ea75d
phone: Don't save .dng files
Not needed since pictures taken with the camera are rare anyway and
I don't think using the .dng files would produce much better results.
2024-09-01 14:19:16 -04:00
Donovan Glover
42ea4eef27
phone: Drop gnome-calendar
Unfortunately the calendar app on the PinePhone is way too slow to be
usable and wasn't adaptive to the screen size anyway.
2024-08-30 20:43:14 -04:00
Donovan Glover
0b44a17ca9
chore: Replace callPackage with flake package
Removes the possibility of ../paths breaking.
2024-08-30 15:19:15 -04:00
Donovan Glover
08b38bf11c
phone: Include weekday and time in video filenames 2024-08-29 19:09:32 -04:00
Donovan Glover
aaef3ecf8b
Revert "meta: Document usage of dwm on phone"
This was cool but there were a few issues such as me not being able to
find the infamous "dock patch" despite grepping for dock on
https://dwm.suckless.org/patches/, which resulted in the keyboard hiding
tiled windows and being below floating windows.

There was also an issue where starting corekeyboard from dwm would
result in styling not being applied compared to starting it from the
terminal.

A third issue was that from a quick attempt I couldn't get callaudiod to
start inside dwm, which was required for gnome-calls.

Overall it looks like I will be using Phosh until further notice on the
PinePhone, as I've already gotten it to work well enough for my use case.
2024-08-28 20:12:40 -04:00
Donovan Glover
b00b2dd8d4
meta: Document usage of dwm on phone
This worked and was *significantly* faster than Phosh but resulted in a
lot of phone things broken like phone calls and the camera. Overall
quite cool to run dwm on the PinePhone but not really practical when
trying to use the PinePhone as a phone.
2024-08-28 19:52:17 -04:00
Donovan Glover
214e814691
phone: Allow olm for now
Used by chatty for Matrix support, however I don't use Chatty for
this feature.

See: https://gitlab.gnome.org/World/Chatty/-/issues/932
2024-08-27 14:14:12 -04:00
Donovan Glover
f698b3aefe
phone: Use gnome-contacts from top-level 2024-08-27 14:06:34 -04:00
Donovan Glover
eebc8d2b52
phone: Disable xwayland support
This shouldn't break anything since I don't use xwayland applications
due to their low quality rendering on Phosh.
2024-08-24 12:15:47 -04:00
Donovan Glover
692eaae017
Revert "phone: Enable mmsd for MMS messages"
Seems to cause a significant increase in battery life consumption and
and doesn't seem to work with a VPN enabled.

See: https://gitlab.com/kop316/mmsd/-/issues/89
2024-08-20 22:37:05 -04:00
Donovan Glover
f571481125
phone: Disable documentation
Derivations like the documentation for rustc were taking up huge amounts
of space that *probably* aren't needed on the PinePhone, so disabling
documentation should significantly improve copy times and reduce the
total amount of space necessary for updates.
2024-08-17 16:38:09 -04:00
Donovan Glover
25225236c3
phone: Enable mmsd for MMS messages
Seems to work for text MMS.
2024-08-17 15:19:08 -04:00
Donovan Glover
47d4715d45
phone: Lower max cpu frequency to 0.816 GHz
Was crashing a bit too often with 0.912 GHz unfortunately.
2024-08-16 23:59:41 -04:00
Donovan Glover
f2d9998249
phone: Update desktop entries list 2024-08-16 17:48:45 -04:00
Donovan Glover
c51951e3de
packages: Add phosh-backgrounds
This is a sane default that works well enough.
2024-08-16 17:44:09 -04:00
Donovan Glover
6249d230ab
phone: Add script to record video
Note that we're using libopus and libx264 instead of flac and ffvhuff to
significantly reduce the file size and make it easier to play back the
recorded video on the PinePhone.

Note that there will be no preview while recording the video. The video
recording is also delayed a bit, so it's necessary to wait a few seconds
after you finish recording a video before pressing q to stop it.
2024-08-16 15:13:48 -04:00
Donovan Glover
d012e06731
librewolf: Only enable friendlyfox on phone
Fixes an issue where the user interface would break on desktop devices.
2024-08-16 00:28:04 -04:00
Donovan Glover
5f21bf0c49
phone: Don't set userDirs to null
Fixes an issue where the camera app Megapixels would silently fail since
it couldn't find the "Pictures" directory.
2024-08-15 22:18:37 -04:00
Donovan Glover
e2b4ba85ea
phone: Ensure 4G connection on initial build
This is a huge step towards using the phone as a phone without having to
worry about using Phosh long-term. This could potentially lead to an
extremely minimal phone in the future that has improved performance for
simple tasks.
2024-08-12 20:05:52 -04:00
Donovan Glover
f1400460ab
phone: Don't show kvantum stuff in app list
Currently the way I'm using the PinePhone is like a minimal phone with
less than 8 apps in total.
2024-08-12 13:45:09 -04:00
Donovan Glover
3fbcf669cf
phone: Drop unused packages
Will be using the phone as a portable web browser to avoid issues with
native applications generally being slower and lacking features you'd
find in their web counterparts.
2024-08-12 13:29:25 -04:00
Donovan Glover
1d489ac6b4
phone: Update device UUIDs
Had to reinstall NixOS on the PinePhone again since a corrupted Nix
store broke everything and was unrecoverable due to not being able to
successfully repair specific files with the use of SSH substituters.

This time we will be trying the PinePhone without LUKS encryption to see
if this makes a difference in the performance of the device. Technically
encryption *isn't* supposed to make things slower in 2024 but the
PinePhone CPU is old enough that performance could've been affected.
2024-08-12 06:35:50 -04:00
Donovan Glover
1427bdc4dd
phone: Switch from alacritty to kitty
Alacritty has some significant issues that make it a non-starter for me
on the PinePhone, such as neovim not displaying properly over SSH.

As an alternative to no touch support in kitty and no shift modifiers in
squeekboard, tmux can be used instead.
2024-08-11 19:26:10 -04:00
Donovan Glover
a3a8766ada
system: Enable ssh for all systems 2024-08-11 18:47:05 -04:00
Donovan Glover
7fb98bba38
phone: Show upcoming events on lock screen
This works but causes the time to not be updated if you turn on the
phone with the upcoming events section open.
2024-08-11 15:38:51 -04:00
Donovan Glover
94c5f8f651
phone: Show calendar in favorites
Unsure if I'll actually use the calendar on here due to how slow it is,
but it seems better than everything else.
2024-08-11 15:36:25 -04:00
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