Commit Graph

3290 Commits

Author SHA1 Message Date
Donovan Glover
3c23411a04
chore: Update flake inputs
Not updating nixpkgs yet since it doesn't have v1.3.3 of the hyprland
portal yet and I'm not interested in spending hours cross-compiling the
phone right now.
2024-07-24 16:38:13 -04:00
Donovan Glover
9a84af4535
shell: Drop cargo-edit
This was used for "cargo upgrade" however there have been major
improvements to cargo since I added this and dependabot on GitHub
handles this better anyway.

One major downside of cargo-edit was that it would take a very long time
for the initial upgrade to occur, which made me use "cargo update" more
anyway to avoid the long wait times.
2024-07-24 16:14:25 -04:00
Donovan Glover
288c132afa
hyprland: Drop tessen
Was a bit too buggy with the auto-typing, so I'd rather just copy
straight from the terminal instead.
2024-07-24 16:10:02 -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
2eca315010
rofi: Make launcher possible to exit with middle click
Now opening an application is no longer necessary if you only have
access to a mouse.
2024-07-23 17:49:42 -04:00
Donovan Glover
f5e0a08a30
overlays: Patch rofi to fix touchpad scrolling
Upstream issue: https://github.com/lbonn/rofi/issues/134
2024-07-23 16:02:22 -04:00
Donovan Glover
a04be3defd
hardware: Suspend on power key press 2024-07-23 15:37:24 -04:00
Donovan Glover
7debc58d55
overlays: Update xdg-desktop-portal-hyprland to 1.3.3
See https://github.com/hyprwm/xdg-desktop-portal-hyprland/releases/tag/v1.3.3
2024-07-23 00:38:04 -04:00
Donovan Glover
f32213f896
mpd: Fix audio output being incorrectly detected as alsa
This fixes an issue where previously one would have to pause and play
audio tracks in order for them to play properly.

Upstream issue: https://github.com/MusicPlayerDaemon/MPD/issues/1649
2024-07-22 20:54:58 -04:00
Donovan Glover
a364b76da2
Revert "ironbar: Add attempt at using volume module"
The volume module currently has a bug that causes audio output to stop
working when plugging in new devices.

Upstream issue: https://github.com/JakeStanger/ironbar/issues/673
2024-07-22 13:55:12 -04:00
Donovan Glover
eec082cb01
meta: Include libnotify at the hyprland level
Not really needed inside the swaync module.
2024-07-22 13:06:31 -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
f657b49051
chore: Update flake inputs 2024-07-22 01:02:18 -04:00
Donovan Glover
790a7a59fe
ironbar: Add notifications module
This seems to work good enough for now, but the icon won't be
immediately updated.
2024-07-21 17:08:26 -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
18e04d894f
librewolf: Enable userChrome.css customization
Necessary for Mobile-Friendly-Firefox styles to be applied on the
PinePhone.
2024-07-21 13:54:18 -04:00
Donovan Glover
d2fe48e8d2
chromium: Set webrtc-ip-handling-policy to public interface
Seems to fix an issue where WebRTC was previously broken in
ungoogled-chromium. Note that `default_public_interface_only`
is used instead of `default` to prevent local IP address leaks.
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
e959cd52ea
ironbar: Change primary color to new stylix one
This changes the primary color from orange to blue.
2024-07-20 11:40:52 -04:00
Donovan Glover
f3037ae4b8
hyprland: Shorten window rules 2024-07-20 11:38:22 -04:00
Donovan Glover
3b2f5d4af3
packages: Add pinephone-toolkit for now
Should be able to eventually replace this with something that aligns
more to my use case.
2024-07-20 10:52:31 -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
942f626000
hyprland: Remove old mouse bind keybinds
This wasn't that reproducible since the keybinds were set with piper so
I'd rather not have it in the config.
2024-07-19 15:46:44 -04:00
Donovan Glover
6a345009f6
chore: Fix formatting 2024-07-19 11:04:11 -04:00
Donovan Glover
723ca1d36b
chore: Update to latest nixos-unstable release 2024-07-19 10:46:07 -04:00
Donovan Glover
c27a257adc
eww: Increase opacity of time overlay 2024-07-18 21:54:54 -04:00
Donovan Glover
8f45534128
hyprland: Float mullvad browser by default
Floating by default is necessary so the browser is initialized with
the correct window size.
2024-07-18 21:26:23 -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
7bb8aa9674
eww: Replace hard-coded color values with stylix ones 2024-07-18 19:53:07 -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
e45b3b6af1
nix: Downgrade from nix 2.23.3 to 2.22.3
It turns out that nixVersions.latest is actually 2.23.3 now and this
version conveniently doesn't have the new homeModules attribute for
flake check backported yet, so we have to downgrade to 2.22.3 anyway.

See: 0a78a55d51
2024-07-18 19:39:03 -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
200bbc1c51
mobile-nixos: Update kernel from 6.9.0 to 6.9.7
Hopefully this doesn't break anything.
2024-07-18 14:51:30 -04:00
Donovan Glover
2de95cbfaf
Revert "nix: Use flake-programs-sqlite for command-not-found"
Would rather not deal with an additional flake input here to keep things
simple.
2024-07-18 14:32:14 -04:00
Donovan Glover
f1ee89ddc8
nix: Use flake-programs-sqlite for command-not-found
This was my attempt at using flake-programs-sqlite, which worked, but
requires an additional flake input in order to function properly.
2024-07-18 14:29:39 -04:00
Donovan Glover
838dedede9
ironbar: Drop tray for now
Currently the tray shows duplicate icons and crashes when Mullvad VPN is
started, making it less than ideal for daily use.
2024-07-18 13:33:05 -04:00
Donovan Glover
26d01911e4
chore: Clean up nix code
- Added missing `services` prefix to xserver option
- Simplified options in system.nix
- Removed unused `optionals` binding
2024-07-18 13:31:13 -04:00
Donovan Glover
787dda981b
Reapply "meta: Replace dunst with swaync"
Might be able to use swaync after all if I avoid using the mpris module
with it. This has the advantage of being supported by ironbar, which
would make missing notifications less likely.
2024-07-18 13:30:20 -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
16258b3374
nix: Update version from 2.18 to 2.22
This should fix a few issues with Nix that were fixed in newer
versions.
2024-07-18 12:55:35 -04:00
Donovan Glover
b4d3190167
stylix: Dynamically generate wallpaper from color scheme
Fixes an issue where previously the background color would be incorrect
when the color scheme was changed, which was particularly noticeable on
Phosh where the background would display when toggling the on-screen
keyboard.

Note that the logo has been intentionally left out this time to simplify
things a bit.
2024-07-18 11:05:08 -04:00
Donovan Glover
40c7b04a9a
chore: Clean up language specifiers
- Removed useless /* bash */ specifier
- Used new hyprlang specifier for Hyprland
- Removed or replaced old /* config */ specifiers
2024-07-18 11:00:34 -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