forked from extern/zaneyos
Working more on profiles
This commit is contained in:
parent
3ed2a159a5
commit
d238074a46
@ -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; })
|
||||
|
@ -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
|
||||
|
@ -6,6 +6,7 @@
|
||||
./autorun.nix
|
||||
./boot.nix
|
||||
./displaymanager.nix
|
||||
./intel-amd.nix
|
||||
./intel-gpu.nix
|
||||
./intel-nvidia.nix
|
||||
./nvidia.nix
|
||||
|
28
config/system/intel-amd.nix
Normal file
28
config/system/intel-amd.nix
Normal 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" ];
|
||||
}
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user