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";
lS="lsd --oneline --classic";
lt="lsd --tree --depth=2";
grep="rg";
cat="bat --paging=never";
rm="rm -i";
};

View File

@ -52,7 +52,6 @@
home.packages = with pkgs; [
# nur.repos.crazazy.js.eslint
# inputs.nixpkgs-stable.legacyPackages.x86_64-linux.corectrl
chromium
#
# Dev Tools
@ -211,41 +210,31 @@
enable = true;
oh-my-zsh = {
enable = true;
plugins = [ "fossil" "git" ];
plugins = [ "git" "ssh-agent" ];
theme = "half-life";
extraConfig =
''
zstyle :omz:plugins:ssh-agent lazy yes
'';
};
initExtra = ''
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() {
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 = {

View File

@ -106,8 +106,24 @@
programs.xfconf.enable = true;
programs.zsh.enable = true;
programs.steam.enable = config.swaywm.installGaming;
programs.gamemode.enable = true;
programs.steam = lib.mkIf config.swaywm.installGaming {
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.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
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
hardware.opengl = {
hardware.graphics = {
# Mesa
enable = true;
enable32Bit = true;
# Vulkan
# driSupport = true;
# Rocm support and vulkan drivers
driSupport = true;
# Rocm support
extraPackages = with pkgs; [
rocmPackages.clr.icd
rocm-opencl-icd
rocm-opencl-runtime
];
};
};