batt conf
This commit is contained in:
parent
47dd74b792
commit
bb0f7dac04
3 changed files with 10 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue