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

@ -2,6 +2,7 @@
inputs, inputs,
config, config,
pkgs, pkgs,
lib,
... ...
}: { }: {
users.users.tao.packages = with pkgs; [ users.users.tao.packages = with pkgs; [
@ -59,7 +60,7 @@
typst typst
typst-fmt typst-fmt
typst-lsp typst-lsp
virt-manager # virt-manager
wezterm wezterm
yt-dlp yt-dlp
zathura zathura
@ -72,8 +73,8 @@
environment.shells = with pkgs; [nushell]; environment.shells = with pkgs; [nushell];
# virt # virt
programs.dconf.enable = true; # programs.dconf.enable = true;
virtualisation.libvirtd.enable = true; # virtualisation.libvirtd.enable = true;
age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age; age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age;
age.secrets.syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age; age.secrets.syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age;
@ -167,7 +168,8 @@
}; };
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPkgs = true;
home-manager.verbose = true; home-manager.verbose = true;
home-manager.backupFileExtension = ".hm-bak"; home-manager.backupFileExtension = ".hm-bak";
home-manager.users.tao = import ./tao/HOME.nix {inherit inputs pkgs;}; home-manager.users.tao = import ./tao/HOME.nix {inherit inputs pkgs lib;};
} }

View file

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

View file

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