mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-21 12:32:51 +02:00
Working more on profiles
This commit is contained in:
parent
3ed2a159a5
commit
d238074a46
@ -6,8 +6,8 @@
|
|||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pkgs."${browser}" discord libvirt swww grim slurp gnome.file-roller
|
pkgs."${browser}" discord libvirt swww grim slurp gnome.file-roller
|
||||||
swaynotificationcenter rofi-wayland imv transmission-gtk mpv
|
swaynotificationcenter rofi-wayland imv transmission-gtk mpv
|
||||||
gimp obs-studio blender kdenlive godot_4 rustup pavucontrol audacity
|
gimp obs-studio blender-hip kdenlive godot_4 rustup audacity
|
||||||
font-awesome spotify swayidle vim neovide neovim
|
font-awesome spotify swayidle vim neovide neovim pavucontrol
|
||||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||||
# Import Scripts
|
# Import Scripts
|
||||||
(import ./../scripts/emopicker9000.nix { inherit pkgs; })
|
(import ./../scripts/emopicker9000.nix { inherit pkgs; })
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
{ pkgs, config, lib, gpuType, ... }:
|
{ pkgs, config, lib, gpuType, ... }:
|
||||||
|
|
||||||
lib.mkIf ("${gpuType}" == "amd") {
|
lib.mkIf ("${gpuType}" == "amd") {
|
||||||
|
systemd.tmpfiles.rules = [
|
||||||
|
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||||
|
];
|
||||||
|
services.xserver.enable = true;
|
||||||
|
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||||
# OpenGL
|
# OpenGL
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
## amdvlk: an open-source Vulkan driver from AMD
|
## amdvlk: an open-source Vulkan driver from AMD
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
./autorun.nix
|
./autorun.nix
|
||||||
./boot.nix
|
./boot.nix
|
||||||
./displaymanager.nix
|
./displaymanager.nix
|
||||||
|
./intel-amd.nix
|
||||||
./intel-gpu.nix
|
./intel-gpu.nix
|
||||||
./intel-nvidia.nix
|
./intel-nvidia.nix
|
||||||
./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";
|
flakeDir = "/home/${username}/zaneyos";
|
||||||
# Driver selection profile
|
# Driver selection profile
|
||||||
# Options include amd (tested), intel, nvidia
|
# 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
|
# vm for both if you are running a vm
|
||||||
cpuType = "amd";
|
cpuType = "amd";
|
||||||
gpuType = "amd";
|
gpuType = "amd";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user