Compare commits

...

5 commits

Author SHA1 Message Date
GaspardCulis
7fbd0bac09 fix(eww -> timer): Fixed timer progress reset value 2024-10-08 15:33:32 +02:00
GaspardCulis
dd8a49df5a fix(Zephyrus): Added mem_sleep_default=deep kernel param
To fix suspend method
2024-10-08 14:44:16 +02:00
GaspardCulis
6d2ee57e9c fix(Zephyrus): Enable NVIDIA offload 2024-10-08 14:43:55 +02:00
GaspardCulis
99c5360e9c chore(Zephyrus): Enable opengl 2024-10-08 14:15:44 +02:00
GaspardCulis
028dc4a017 refactor(Zepyrus): Moved NVIDIA config to hardware-configuration.nix 2024-10-08 14:15:07 +02:00
3 changed files with 28 additions and 28 deletions

View file

@ -56,7 +56,7 @@ handle_signal() {
kill -9 $sub_timer_pid
sub_timer_pid=0
timer_state_state="inactive"
timer_state_progress=100
timer_state_progress=100000
update_timer_state
else
start_timer "work" &

View file

@ -52,33 +52,6 @@
podman-compose
];
# NVIDIA
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
# NVIDIA
"nvidia-x11"
"nvidia-settings"
# Steam
"steam"
"steam-original"
"steam-run"
];
hardware.graphics.enable = true;
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
modesetting.enable = true;
open = false; # Bruuh
prime = {
amdgpuBusId = "PCI:7:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
#Podman
virtualisation.containers.enable = true;
virtualisation = {

View file

@ -16,6 +16,7 @@
boot = {
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
kernelModules = ["kvm-amd"];
kernelParams = ["mem_sleep_default=deep"]; # Should fix/change suspend method
extraModulePackages = [];
initrd = {
availableKernelModules = ["nvme" "xhci_pci" "usbhid" "sdhci_pci"];
@ -32,6 +33,32 @@
tmp.useTmpfs = true;
};
#NVIDIA
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"nvidia-x11"
"nvidia-settings"
];
hardware.graphics.enable = true;
hardware.opengl.enable = true;
hardware.nvidia = {
modesetting.enable = true;
open = false; # Bruuh
prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
amdgpuBusId = "PCI:7:0:0";
nvidiaBusId = "PCI:1:0:0";
};
};
services.xserver.videoDrivers = ["nvidia"];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction