Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

staging: 2024-11-14 #20

Merged
merged 5 commits into from
Nov 14, 2024
Merged

staging: 2024-11-14 #20

merged 5 commits into from
Nov 14, 2024

Conversation

Frontear
Copy link
Owner

@Frontear Frontear commented Nov 14, 2024

Things Done

  1. (1f51387) Introduced a GitHub workflow to automatically build my configurations, ensuring their evaluation correctness
  2. (9532271) Add Zig and Rust LSPs to my NeoVIM configuration
  3. (4ea5c5f) Tweak my laptop with some power savings configurations, including using auto-cpufreq and setting some low-level knobs
  4. (d636c8d) Switch the Sway configuration from using light to acpilight
  5. (d732191) Re-introduce the Nix wrapper, now with less hackiness

This will build all my configurations and run `nix flake check`. I'm hoping to eventually move the "build" logic into something in the `checks` flake ouput, which would allow `nix flake check` to handle it for me. #21 tracks that progress at the moment.

I had to add a disk-space free action in order to create enough space on the action runner. This could pose a problem for the future..
I'm not currently using Zig nor Rust much, but I am interested in learning both.
I ran `powertop` on my system for about 2-3 hours in order to allow it ample time to determine an accurate measurement of my system's battery usage. It reported 4-6 Whr drain, which honestly seems a little lower than I expected. This battery is also supposedly 51 W..?

Either way, I've read online that auto-cpufreq seems to actually perform somewhat better than TLP when it comes to tuning the power drain on a system. From what I can see, even though I may be experiencing placebo, it does seem that my laptop is lasting just a tad longer.

Alongside the above changes I scoured the ArchWiki and set some low level things as well. I disabled bluetooth and the HDMI audio transfer, I set the ASPM policy to **powersupersave**, I set the SCSI link policy to **med_power_with_dipm**, and disabled the kernel watchdog. I also switched from using `systemd-timesyncd` to `chrony`, which is generally better for a machine that may not have internet connectivity always, a criteria my laptop perfectly fits.
This software has been abandoned and there are talks on Nixpkgs to remove it. I am also in support of the removal as it's going to slowly become outdated and it's better to pull the plug now than later.

We are using `acpilight` now, which contrary to the binary name `xbacklight`, does not _only_ work on X11. This is pretty much a drop-in replacement no special things to worry about here.
The previous nix wrapper wasn't quite "elegantly" crafted. This one attempts to modify arguments in a slightly more durable and extendible manner, and sets `exec` a bit more precisely to ensure proper usage in pretty much all cases. I tried using `nixos-rebuild build --flake .#ref` and it was successful. I also tried `nixos-install --root /random/mount/on/my/live/system --flake .#ref`, and this _also_ worked. These aren't the most durable tests, but it's sufficient for me to know that both are working here, and gives me the confidence to bring it back.
@Frontear Frontear merged commit d732191 into main Nov 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant