This commit is contained in:
Peder Bergebakken Sundt 2024-11-15 04:50:41 +01:00
parent 729a6bdcaf
commit 7f6ac346f4
3 changed files with 7 additions and 4 deletions

View File

@ -72,7 +72,7 @@
nix.settings.experimental-features = [ nix.settings.experimental-features = [
"nix-command" "nix-command"
"flakes" "flakes"
"pipe-operator" /* "pipe-operator" # not supported on lix 2.91 */
]; ];
#nix.settings.allowed-users = [ "@builders" ]; # TODO: this #nix.settings.allowed-users = [ "@builders" ]; # TODO: this
nix.settings.allowed-users = [ "root" "pbsds" "@wheel" ]; # default is [ "*" ] nix.settings.allowed-users = [ "root" "pbsds" "@wheel" ]; # default is [ "*" ]

View File

@ -5,15 +5,17 @@ lib.mkMerge [
# TODO: should we move it from flake.nix to here? # TODO: should we move it from flake.nix to here?
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/default.nix # https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/default.nix
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/prime.nix # https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/nvidia/prime.nix
hardware.opengl.enable = true;
} }
(lib.mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "24.11") { (lib.mkIf (lib.versionOlder (lib.versions.majorMinor lib.version) "24.11") {
hardware.opengl.enable = true;
hardware.opengl.driSupport = true; hardware.opengl.driSupport = true;
hardware.opengl.driSupport32Bit = true; hardware.opengl.driSupport32Bit = true;
}) })
(lib.mkIf (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11") { (lib.mkIf (lib.versionAtLeast (lib.versions.majorMinor lib.version) "24.11") {
hardware.nvidia.open = true; hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
# hardware.nvidia.open = if lib.versionOlder config.hardware.nvidia.package.version "560" then false else null;
}) })
{ {

View File

@ -107,6 +107,7 @@
nix-search-cli # nix-search nix-search-cli # nix-search
#cargo #cargo
#cargo-update
#cargo-edit #cargo-edit
#nim #nim