1
0
forked from extern/zaneyos

Working more on profiles

This commit is contained in:
Tyler Kelley 2024-01-28 02:12:50 -06:00
parent 3ed2a159a5
commit d238074a46
5 changed files with 37 additions and 3 deletions

View File

@ -6,8 +6,8 @@
home.packages = with pkgs; [
pkgs."${browser}" discord libvirt swww grim slurp gnome.file-roller
swaynotificationcenter rofi-wayland imv transmission-gtk mpv
gimp obs-studio blender kdenlive godot_4 rustup pavucontrol audacity
font-awesome spotify swayidle vim neovide neovim
gimp obs-studio blender-hip kdenlive godot_4 rustup audacity
font-awesome spotify swayidle vim neovide neovim pavucontrol
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
# Import Scripts
(import ./../scripts/emopicker9000.nix { inherit pkgs; })

View File

@ -1,6 +1,11 @@
{ pkgs, config, lib, gpuType, ... }:
lib.mkIf ("${gpuType}" == "amd") {
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
services.xserver.enable = true;
services.xserver.videoDrivers = [ "amdgpu" ];
# OpenGL
hardware.opengl = {
## amdvlk: an open-source Vulkan driver from AMD

View File

@ -6,6 +6,7 @@
./autorun.nix
./boot.nix
./displaymanager.nix
./intel-amd.nix
./intel-gpu.nix
./intel-nvidia.nix
./nvidia.nix

View File

@ -0,0 +1,28 @@
{ pkgs, config, lib, gpuType, ... }:
lib.mkIf ("${gpuType}" == "intel-amd") {
nixpkgs.config.packageOverrides =
pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {
enableHybridCodec = true;
};
};
# OpenGL
hardware.opengl = {
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
amdvlk
];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
};
systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
];
services.xserver.enable = true;
services.xserver.videoDrivers = [ "amdgpu" ];
}

View File

@ -34,7 +34,7 @@
flakeDir = "/home/${username}/zaneyos";
# Driver selection profile
# Options include amd (tested), intel, nvidia
# GPU hybrid options: intel-nvidia, amd-nvidia
# GPU hybrid options: intel-nvidia, intel-amd
# vm for both if you are running a vm
cpuType = "amd";
gpuType = "amd";