batt conf
This commit is contained in:
parent
47dd74b792
commit
bb0f7dac04
3 changed files with 10 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
users.users.tao.packages = with pkgs; [
|
||||
|
|
@ -59,7 +60,7 @@
|
|||
typst
|
||||
typst-fmt
|
||||
typst-lsp
|
||||
virt-manager
|
||||
# virt-manager
|
||||
wezterm
|
||||
yt-dlp
|
||||
zathura
|
||||
|
|
@ -72,8 +73,8 @@
|
|||
environment.shells = with pkgs; [nushell];
|
||||
|
||||
# virt
|
||||
programs.dconf.enable = true;
|
||||
virtualisation.libvirtd.enable = true;
|
||||
# programs.dconf.enable = true;
|
||||
# virtualisation.libvirtd.enable = true;
|
||||
|
||||
age.secrets.syncthing-NOcomputer.file = ../secrets/syncthing-NOcomputer.age;
|
||||
age.secrets.syncthing-NOlaptop.file = ../secrets/syncthing-NOlaptop.age;
|
||||
|
|
@ -167,7 +168,8 @@
|
|||
};
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPkgs = true;
|
||||
home-manager.verbose = true;
|
||||
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;};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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