the newest thing for extrem power usage

This commit is contained in:
Sebastian Moser
2025-04-06 14:38:03 +02:00
parent 2bdcfe6695
commit 12fcb7050a
2 changed files with 130 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
enable = true;
enableCompletion = true;
historyFile = if hostname == "main" then "/home/$USER/work/app-data/${hostname}/bash-history" else "/home/$USER/here/bash-history";
historyFile = if hostname == "main" then "/home/$USER/work/app-data/${hostname}/bash-history" else "/home/$USER/host/bash-history";
historyFileSize = 100000;
historyControl = [ "ignoredups" ];
historyIgnore = [
@@ -92,8 +92,8 @@
export NIXPKGS_ALLOW_UNFREE=1
# the commit hash of nixpkgs 23.11
export nip="nixpkgs/71db8c7a02f3be7cb49b495786050ce1913246d3"
export nup="nixpkgs/2a34566b67bef34c551f204063faeecc444ae9da"
export nip="nixpkgs/${self.inputs.nixpkgs.rev}"
export nup="nixpkgs/${self.inputs.nixpkgs-unstable.rev}"
# needed to make ssh -X work
# see: https://unix.stackexchange.com/questions/412065/ssh-connection-x11-connection-rejected-because-of-wrong-authentication
@@ -138,6 +138,17 @@
complete -W "mosatop acern" rp
# function to create a tmpdir, to use for some temporary work....
# made this, to not just keep cluttering my $HOME... with all kinds of projects
function mt () {
export TOPDIR=$HOME/tmp
mkdir -p $TOPDIR
cd $(${pkgs.python3}/bin/python ${self}/scripts/quick-tmp-dir.py "$@")
}
# so that programms i spawn from my shell don't have so high cpu priority
[ which renice 2>/dev/null ] && renice -n 9 $$ > /dev/null