Compare commits

..

2 commits

Author SHA1 Message Date
GaspardCulis
3c4da2d439 feat(Zephyrus): Added nvidia relative config 2024-09-20 17:12:30 +02:00
GaspardCulis
159c155428 fix(Zephyrus): Fixed typo 2024-09-20 16:54:41 +02:00
2 changed files with 20 additions and 2 deletions

View file

@ -12,7 +12,7 @@
# Set your time zone.
time.timeZone = "Europe/Paris";
console.keyMap = "fr"
console.keyMap = "fr";
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
@ -36,4 +36,22 @@
"gaspard" = import ../../users/gaspard.nix;
};
};
# NVIDIA
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["nvidia-x11" "nvidia-settings"];
hardware.opengl.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";
};
};
}

View file

@ -23,7 +23,7 @@
name = "crypted";
settings = {
allowDiscards = true;
askPassword = true;
# askPassword = true;
};
content = {
type = "lvm_pv";