Compare commits
2 commits
ebef97a0a9
...
3c4da2d439
Author | SHA1 | Date | |
---|---|---|---|
|
3c4da2d439 | ||
|
159c155428 |
2 changed files with 20 additions and 2 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
name = "crypted";
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
askPassword = true;
|
||||
# askPassword = true;
|
||||
};
|
||||
content = {
|
||||
type = "lvm_pv";
|
||||
|
|
Loading…
Reference in a new issue