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;