Update amd setup, add corectrl

This commit is contained in:
Nate Anderson 2024-12-17 15:52:07 -07:00
parent 183082a99b
commit 90917e6e9d
3 changed files with 44 additions and 37 deletions

View File

@ -238,7 +238,6 @@
llm="lsd --timesort --long"; llm="lsd --timesort --long";
lS="lsd --oneline --classic"; lS="lsd --oneline --classic";
lt="lsd --tree --depth=2"; lt="lsd --tree --depth=2";
grep="rg";
cat="bat --paging=never"; cat="bat --paging=never";
rm="rm -i"; rm="rm -i";
}; };

View File

@ -52,7 +52,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
# nur.repos.crazazy.js.eslint # nur.repos.crazazy.js.eslint
# inputs.nixpkgs-stable.legacyPackages.x86_64-linux.corectrl
chromium chromium
# #
# Dev Tools # Dev Tools
@ -211,41 +210,31 @@
enable = true; enable = true;
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
plugins = [ "fossil" "git" ]; plugins = [ "git" "ssh-agent" ];
theme = "half-life"; theme = "half-life";
extraConfig =
''
zstyle :omz:plugins:ssh-agent lazy yes
'';
}; };
initExtra = '' initExtra = ''
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent
# fzf_projects() {
# DIR=`
# fd .git --search-path="$HOME/source/" -H --ignore-file ~/.config/fd-ignore -tdirectory | \
# xargs dirname | \
# sed 's|$HOME||g' | \
# sort | \
# uniq | \
# fzf --preview 'ls $HOME/{}/README.md 2>/dev/null && bat $HOME/{}/README.md || printf "No README.md file found in this directory\n%s" {}' --preview-window=top | \
# xargs printf "$HOME/%s/"
# `
# cd $DIR
# }
# alias p="fzf_projects ~/source/"
yt-audio() { yt-audio() {
nix-shell -p yt-dlp --run "yt-dlp -x $1 --audio-format mp3" nix-shell -p yt-dlp --run "yt-dlp -x $1 --audio-format mp3"
} }
alias ls="lsd"
alias l="lsd --almost-all --long"
alias llm="lsd --timesort --long"
alias lS="lsd --oneline --classic"
alias lt="lsd --tree --depth=2"
alias grep="rg"
alias cat="bat --paging=never"
alias rm="rm -i"
alias adaptiveoff="swaymsg 'output * adaptive_sync off'"
alias adaptiveon="swaymsg 'output * adaptive_sync on'"
''; '';
shellAliases = {
ls="lsd";
l="lsd --almost-all --long";
llm="lsd --timesort --long";
lS="lsd --oneline --classic";
lt="lsd --tree --depth=2";
cat="bat --paging=never";
rm="rm -i";
adaptiveoff="swaymsg 'output * adaptive_sync off'";
adaptiveon="swaymsg 'output * adaptive_sync on'";
};
}; };
qt = { qt = {

View File

@ -106,8 +106,24 @@
programs.xfconf.enable = true; programs.xfconf.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
programs.steam.enable = config.swaywm.installGaming; programs.steam = lib.mkIf config.swaywm.installGaming {
programs.gamemode.enable = true; enable = true;
gamescopeSession.enable = true;
};
programs.gamemode = {
enable = true;
settings = {
general = {
reaper_freq = 5;
desiredgov = "performance";
softrealtime = "auto";
};
};
};
programs.corectrl = {
enable = true;
gpuOverclock.enable = true;
};
programs.adb.enable = true; programs.adb.enable = true;
# programs.kdeconnect.enable = true; # programs.kdeconnect.enable = true;
@ -166,21 +182,24 @@
}; };
}; };
# services.xserver.videoDrivers = [ "amdgpu" ]; hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
services.xserver.videoDrivers = [ "amdgpu" ];
# Enable HIP # Enable HIP
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
]; ];
hardware.bluetooth.enable = true; # enables support for Bluetooth hardware.graphics = {
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
hardware.opengl = {
# Mesa # Mesa
enable = true; enable = true;
enable32Bit = true;
# Vulkan # Vulkan
# driSupport = true; driSupport = true;
# Rocm support and vulkan drivers # Rocm support
extraPackages = with pkgs; [ extraPackages = with pkgs; [
rocmPackages.clr.icd rocm-opencl-icd
rocm-opencl-runtime
]; ];
}; };
}; };