batt conf

This commit is contained in:
Tao Tien 2024-04-02 11:17:11 -07:00
parent 47dd74b792
commit bb0f7dac04
3 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,7 @@
{
pkgs,
inputs,
lib,
...
}: let
cargoFile = builtins.readFile ./cargo.toml;
@ -23,7 +24,7 @@ in {
enable = true;
settings = {
battery =
if builtins.readFile /etc/hostname == "NOlaptop"
if lib.strings.hasPrefix "NOlaptop" (builtins.readFile /etc/hostname)
then true
else false;
hide_time = true;

View file

@ -36,5 +36,6 @@ lto = "fat"
linker = "clang"
rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
# jonhoo
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
# https://www.williballenthin.com/post/rust-compilation-time/