mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Hardware/Nvidia] rework Nvidia driver selection with a more versatile "variant" option
This commit is contained in:
parent
8c76734e33
commit
1ab3401832
3 changed files with 13 additions and 4 deletions
|
|
@ -11,7 +11,6 @@ let
|
|||
in {
|
||||
options = {
|
||||
aviallon.hardware.nvidia.proprietary = {
|
||||
#enable = mkEnableOption "Wether to user NVidia proprietary drivers";
|
||||
gsync = mkEnableOption "Screen is GSYNC monitor";
|
||||
vsync = mkOption {
|
||||
description = "Wether to enable or disable vsync";
|
||||
|
|
@ -38,7 +37,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
config = mkIf (cfg.enable && cfg.useProprietary) {
|
||||
config = mkIf (cfg.enable && cfg.variant == "proprietary") {
|
||||
|
||||
assertions = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue